@Override public void encode(OutputStream out, final boolean removeSpc, final SccpProtocolVersion sccpProtocolVersion) throws ParseException { try{ if(super.digits == null){ throw new IllegalStateException(); } out.write(this.translationType); out.write((this.numberingPlan.getValue() << 4) | this.encodingScheme.getSchemeCode()); this.encodingScheme.encode(digits, out); } catch (IOException e) { throw new ParseException(e); } }
@Override public void encode(OutputStream out, final boolean removeSpc, final SccpProtocolVersion sccpProtocolVersion) throws ParseException { try{ if(super.digits == null){ throw new IllegalStateException(); } out.write(this.translationType); out.write((this.numberingPlan.getValue() << 4) | this.encodingScheme.getSchemeCode()); out.write(this.natureOfAddress.getValue()); this.encodingScheme.encode(digits, out); } catch (IOException e) { throw new ParseException(e); } }
public static NumberingPlanSccpType createInstance(String s) { Integer i1 = doCreateInstance(s, stringMap, intMap); if (i1 == null) return new NumberingPlanSccpType(NumberingPlan.UNKNOWN.getValue()); else return new NumberingPlanSccpType(i1); }
@Override public NumberingPlanSccpType getNumberingPlan() { return new NumberingPlanSccpType(this.testerHost.getConfigurationData().getSccpConfigurationData().getNumberingPlan() .getValue()); }
M3uaForm.setEnumeratedBaseComboBox(cbNumberingPlan, new NumberingPlanSccpType(NumberingPlan.ISDN_TELEPHONY.getValue())); M3uaForm.setEnumeratedBaseComboBox(cbSccpProtocolVersion, new SccpProtocolVersionType(SccpProtocolVersion.ITU.getValue()));
M3uaForm.setEnumeratedBaseComboBox(cbNumberingPlan, new NumberingPlanSccpType(NumberingPlan.ISDN_TELEPHONY.getValue())); M3uaForm.setEnumeratedBaseComboBox(cbSccpProtocolVersion, new SccpProtocolVersionType(SccpProtocolVersion.ITU.getValue()));
public void write(GlobalTitle0011Impl ai, OutputElement xml) throws XMLStreamException { xml.setAttribute(TRANSLATION_TYPE, ai.translationType); xml.setAttribute(ENCODING_SCHEME, ai.encodingScheme.getSchemeCode()); xml.setAttribute(NUMBERING_PLAN, ai.numberingPlan.getValue()); xml.setAttribute(DIGITS, ai.digits); }
public void write(GlobalTitle0100Impl ai, OutputElement xml) throws XMLStreamException { xml.setAttribute(TRANSLATION_TYPE, ai.translationType); xml.setAttribute(ENCODING_SCHEME, ai.encodingScheme.getSchemeCode()); xml.setAttribute(NUMBERING_PLAN, ai.numberingPlan.getValue()); xml.setAttribute(NATURE_OF_ADDRESS_INDICATOR, ai.natureOfAddress.getValue()); xml.setAttribute(DIGITS, ai.digits); }
this.sccp.setGlobalTitleType(_sccp.getGlobalTitleType()); this.sccp.setNatureOfAddress(new NatureOfAddressType(_sccp.getNatureOfAddress().getValue())); this.sccp.setNumberingPlan(new NumberingPlanSccpType(_sccp.getNumberingPlan().getValue())); this.sccp.setTranslationType(_sccp.getTranslationType()); this.sccp.setCallingPartyAddressDigits(_sccp.getCallingPartyAddressDigits());