catalogquerytypedriver.java

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

JAVA
58
字号
package com.esri.solutions.jitk.personalization.data.beans.v1.impl;public class CatalogQueryTypeDriver 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.CatalogQueryType _2 = (com.esri.solutions.jitk.personalization.data.beans.v1.CatalogQueryType) pObject;    java.lang.String _3 = _2.getId();    if (_3 != null) {      _1.addAttribute("", "Id", pController.getAttrQName(this, "", "Id"), "CDATA", _2.getId());    }    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/queries")) {      return "mvsq";    }    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.CatalogQueryType _1 = (com.esri.solutions.jitk.personalization.data.beans.v1.CatalogQueryType) pObject;    java.lang.String _2 = _1.getName();    if (_2 != null) {      pController.marshalSimpleChild(this, "http://www.esri.com/solutions/mvs/v1/queries", "Name", _1.getName());    }    java.lang.String _3 = _1.getDescription();    if (_3 != null) {      pController.marshalSimpleChild(this, "http://www.esri.com/solutions/mvs/v1/queries", "Description", _1.getDescription());    }    com.esri.solutions.jitk.personalization.data.beans.v1.QueryFilterType _4 = _1.getQueryFilter();    if (_4 != null) {      org.apache.ws.jaxme.impl.JMSAXDriver _5 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(com.esri.solutions.jitk.personalization.data.beans.v1.QueryFilter.class).getDriver();      pController.marshal(_5, "http://www.esri.com/solutions/mvs/v1/queries", "QueryFilter", _1.getQueryFilter());    }    com.esri.solutions.jitk.personalization.data.beans.v1.SpatialFilterType _6 = _1.getSpatialFilter();    if (_6 != null) {      org.apache.ws.jaxme.impl.JMSAXDriver _7 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(com.esri.solutions.jitk.personalization.data.beans.v1.SpatialFilter.class).getDriver();      pController.marshal(_7, "http://www.esri.com/solutions/mvs/v1/queries", "SpatialFilter", _1.getSpatialFilter());    }    pController.marshalSimpleChild(this, "http://www.esri.com/solutions/mvs/v1/queries", "MaxResults", pController.getDatatypeConverter().printInt(_1.getMaxResults()));    com.esri.solutions.jitk.personalization.data.beans.v1.AttributeCollectionType _8 = _1.getExtendedAttributes();    if (_8 != null) {      org.apache.ws.jaxme.impl.JMSAXDriver _9 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(com.esri.solutions.jitk.personalization.data.beans.v1.AttributeCollectionType.class).getDriver();      pController.marshal(_9, "http://www.esri.com/solutions/mvs/v1/queries", "ExtendedAttributes", _1.getExtendedAttributes());    }    com.esri.solutions.jitk.personalization.data.beans.v1.CatalogServiceType _10 = _1.getCatalogService();    if (_10 != null) {      org.apache.ws.jaxme.impl.JMSAXDriver _11 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(com.esri.solutions.jitk.personalization.data.beans.v1.CatalogServiceType.class).getDriver();      pController.marshal(_11, "http://www.esri.com/solutions/mvs/v1/queries", "CatalogService", _1.getCatalogService());    }  }}

⌨️ 快捷键说明

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