catalogservicetypedriver.java

来自「esri的ArcGIS Server超级学习模板程序(for java)」· Java 代码 · 共 45 行

JAVA
45
字号
package com.esri.solutions.jitk.personalization.data.beans.v1.impl;public class CatalogServiceTypeDriver implements org.apache.ws.jaxme.impl.JMSAXDriver {  public org.xml.sax.helpers.AttributesImpl getAttributes(org.apache.ws.jaxme.impl.JMSAXDriverController pController, java.lang.Object pObject) throws org.xml.sax.SAXException {    org.xml.sax.helpers.AttributesImpl _1 = new org.xml.sax.helpers.AttributesImpl();    com.esri.solutions.jitk.personalization.data.beans.v1.CatalogServiceType _2 = (com.esri.solutions.jitk.personalization.data.beans.v1.CatalogServiceType) pObject;    java.lang.String _3 = _2.getId();    if (_3 != null) {      _1.addAttribute("", "Id", pController.getAttrQName(this, "", "Id"), "CDATA", _2.getId());    }    java.lang.String _4 = _2.getEndPointUrl();    if (_4 != null) {      _1.addAttribute("", "EndPointUrl", pController.getAttrQName(this, "", "EndPointUrl"), "CDATA", _2.getEndPointUrl());    }    return _1;  }  public java.lang.String getPreferredPrefix(java.lang.String pURI) {    if (pURI == null) {      pURI = "";    }    if (pURI.equals("http://www.esri.com/solutions/mvs/v1/types")) {      return "mvs";    } else if (pURI.equals("http://www.esri.com/solutions/mvs/v1/resources")) {      return "mrt";    }    return null;  }  public void marshalChilds(org.apache.ws.jaxme.impl.JMSAXDriverController pController, org.xml.sax.ContentHandler pHandler, java.lang.Object pObject) throws org.xml.sax.SAXException {    com.esri.solutions.jitk.personalization.data.beans.v1.CatalogServiceType _1 = (com.esri.solutions.jitk.personalization.data.beans.v1.CatalogServiceType) pObject;    com.esri.solutions.jitk.personalization.data.beans.v1.IdentityType _2 = _1.getIdentity();    if (_2 != null) {      org.apache.ws.jaxme.impl.JMSAXDriver _3 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(com.esri.solutions.jitk.personalization.data.beans.v1.IdentityType.class).getDriver();      pController.marshal(_3, "http://www.esri.com/solutions/mvs/v1/resources", "Identity", _1.getIdentity());    }    com.esri.solutions.jitk.personalization.data.beans.v1.AttributeCollectionType _4 = _1.getAttributes();    if (_4 != null) {      org.apache.ws.jaxme.impl.JMSAXDriver _5 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(com.esri.solutions.jitk.personalization.data.beans.v1.Attributes.class).getDriver();      pController.marshal(_5, "http://www.esri.com/solutions/mvs/v1/types", "Attributes", _1.getAttributes());    }  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?