@Override public void write( CallingPartyNumberImpl callingPartyNumber, javolution.xml.XMLFormat.OutputElement xml) throws XMLStreamException { ISUP_ABSTRACT_NAI_NUMBER_XML.write(callingPartyNumber, xml); xml.setAttribute(NUMBERING_PLAN_INDICATOR, callingPartyNumber.numberingPlanIndicator); xml.setAttribute( NUMBER_NUMBER_INCOMPLETE_INDICATOR, callingPartyNumber.numberIncompleteIndicator); xml.setAttribute( ADDRESS_REPRESENTATION_RESTRICTED_INDICATOR, callingPartyNumber.addressRepresentationRestrictedIndicator); xml.setAttribute(SCREENING_INDICATOR, callingPartyNumber.screeningIndicator); }
@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); }