@Override public void read( javolution.xml.XMLFormat.InputElement xml, VariableMessageImpl variableMessage) throws XMLStreamException { variableMessage.elementaryMessageID = xml.get(ELEMENTARY_MESSAGE_ID, Integer.class); variableMessage.variableParts = new ArrayList<VariablePart>(); while (xml.hasNext()) { VariablePartImpl vp = xml.get("variablePart", VariablePartImpl.class); variableMessage.variableParts.add(vp); } }
@Override public void read( javolution.xml.XMLFormat.InputElement xml, CallingPartyNumberImpl callingPartyNumber) throws XMLStreamException { ISUP_ABSTRACT_NAI_NUMBER_XML.read(xml, callingPartyNumber); callingPartyNumber.numberingPlanIndicator = xml.getAttribute(NUMBERING_PLAN_INDICATOR, DEFAULT_NUMBERING_PLAN_INDICATOR); callingPartyNumber.numberIncompleteIndicator = xml.getAttribute( NUMBER_NUMBER_INCOMPLETE_INDICATOR, DEFAULT_NUMBER_NUMBER_INCOMPLETE_INDICATOR); callingPartyNumber.addressRepresentationRestrictedIndicator = xml.getAttribute( ADDRESS_REPRESENTATION_RESTRICTED_INDICATOR, DEFAULT_ADDRESS_REPRESENTATION_RESTRICTED_INDICATOR); callingPartyNumber.screeningIndicator = xml.getAttribute(SCREENING_INDICATOR, DEFAULT_SCREENING_INDICATOR); }
@Override public void read( javolution.xml.XMLFormat.InputElement xml, GeodeticInformationImpl geodeticInformation) throws XMLStreamException { int sapi = xml.getAttribute(SCREENING_AND_PRESENTATION_INDICATORS, DEFAULT_INT_VALUE); String str = xml.getAttribute(TYPE_OF_SHAPE, DEFAULT_STRING_VALUE); TypeOfShape tos = null; if (str != null) tos = Enum.valueOf(TypeOfShape.class, str); double lat = xml.getAttribute(LATITUDE, DEFAULT_DOUBLE_VALUE); double lng = xml.getAttribute(LONGITUDE, DEFAULT_DOUBLE_VALUE); double unc = xml.getAttribute(UNCERTAINTY, DEFAULT_DOUBLE_VALUE); int conf = xml.getAttribute(CONFIDENCE, DEFAULT_INT_VALUE); try { geodeticInformation.setData(sapi, tos, lat, lng, unc, conf); } catch (MAPException e) { throw new XMLStreamException( "MAPException when deserializing GeodeticInformationImpl", e); } }