preferencesettingstypedriver.java

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

JAVA
47
字号
package com.esri.solutions.jitk.personalization.data.beans.v1.impl;public class PreferenceSettingsTypeDriver 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();    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/preferences")) {      return "mvsp";    } else if (pURI.equals("http://www.esri.com/solutions/mvs/v1/types")) {      return "mvs";    }    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.PreferenceSettingsType _1 = (com.esri.solutions.jitk.personalization.data.beans.v1.PreferenceSettingsType) pObject;    com.esri.solutions.jitk.personalization.data.beans.v1.RgbColorType _2 = _1.getMapBackground();    if (_2 != null) {      org.apache.ws.jaxme.impl.JMSAXDriver _3 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(com.esri.solutions.jitk.personalization.data.beans.v1.RgbColorType.class).getDriver();      pController.marshal(_3, "http://www.esri.com/solutions/mvs/v1/preferences", "MapBackground", _1.getMapBackground());    }    pController.marshalSimpleChild(this, "http://www.esri.com/solutions/mvs/v1/preferences", "ZoomScale", pController.getDatatypeConverter().printInt(_1.getZoomScale()));    com.esri.solutions.jitk.personalization.data.beans.v1.SelectionSymbolSetType _4 = _1.getSelectionSymbols();    if (_4 != null) {      org.apache.ws.jaxme.impl.JMSAXDriver _5 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(com.esri.solutions.jitk.personalization.data.beans.v1.SelectionSymbolSetType.class).getDriver();      pController.marshal(_5, "http://www.esri.com/solutions/mvs/v1/preferences", "SelectionSymbols", _1.getSelectionSymbols());    }    java.util.List _6 = _1.getConnectionSpeedSettings();    for (int _7 = 0;  _7 < (_6).size();  _7++) {      org.apache.ws.jaxme.impl.JMSAXDriver _8 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(com.esri.solutions.jitk.personalization.data.beans.v1.ConnectionSpeedSettingsType.class).getDriver();      pController.marshal(_8, "http://www.esri.com/solutions/mvs/v1/preferences", "ConnectionSpeedSettings", (com.esri.solutions.jitk.personalization.data.beans.v1.ConnectionSpeedSettingsType)_6.get(_7));    }    com.esri.solutions.jitk.personalization.data.beans.v1.AttributeCollectionType _9 = _1.getAttributes();    if (_9 != null) {      org.apache.ws.jaxme.impl.JMSAXDriver _10 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(com.esri.solutions.jitk.personalization.data.beans.v1.Attributes.class).getDriver();      pController.marshal(_10, "http://www.esri.com/solutions/mvs/v1/types", "Attributes", _1.getAttributes());    }  }}

⌨️ 快捷键说明

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