• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java XMLStreamException类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中javolution.xml.stream.XMLStreamException的典型用法代码示例。如果您正苦于以下问题:Java XMLStreamException类的具体用法?Java XMLStreamException怎么用?Java XMLStreamException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



XMLStreamException类属于javolution.xml.stream包,在下文中一共展示了XMLStreamException类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: read

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
public void read(InputElement xml, TestSmsServerConfigurationData srv) throws XMLStreamException {
    srv.hlrSsn = xml.getAttribute(HLR_SSN).toInt();
    srv.vlrSsn = xml.getAttribute(VLR_SSN).toInt();
    srv.sendSrsmdsIfError = xml.getAttribute(SEND_SRSMDS_IF_ERROR).toBoolean();
    CharArray car = xml.getAttribute(GPRS_SUPPORT_INDICATOR);
    if (car != null)
        srv.gprsSupportIndicator = car.toBoolean();

    srv.serviceCenterAddress = (String) xml.get(SERVICE_CENTER_ADDRESS, String.class);

    String an = (String) xml.get(ADDRESS_NATURE, String.class);
    srv.addressNature = AddressNature.valueOf(an);
    String np = (String) xml.get(NUMBERING_PLAN, String.class);
    srv.numberingPlan = NumberingPlan.valueOf(np);
    String mpv = (String) xml.get(MAP_PROTOCOL_VERSION, String.class);
    srv.mapProtocolVersion = MapProtocolVersion.createInstance(mpv);
    String ton = (String) xml.get(TYPE_OF_NUMBER, String.class);
    srv.typeOfNumber = TypeOfNumber.valueOf(ton);
    String npi = (String) xml.get(NUMBERING_PLAN_IDENTIFICATION, String.class);
    srv.numberingPlanIdentification = NumberingPlanIdentification.valueOf(npi);
    String sct = (String) xml.get(SMS_CODING_TYPE, String.class);
    srv.smsCodingType = SmsCodingType.createInstance(sct);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:24,代码来源:TestSmsServerConfigurationData.java


示例2: write

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
@Override
public void write(MAPErrorMessageAbsentSubscriberSMImpl ussdMessage, javolution.xml.XMLFormat.OutputElement xml)
        throws XMLStreamException {
    MAP_ERROR_MESSAGE_XML.write(ussdMessage, xml);

    if (ussdMessage.getAbsentSubscriberDiagnosticSM() != null)
        xml.add((String) ussdMessage.getAbsentSubscriberDiagnosticSM().toString(), ABSENT_SUBSCRIBER_DIAGNOSTIC_SM,
                String.class);

    if (ussdMessage.getAdditionalAbsentSubscriberDiagnosticSM() != null)
        xml.add((String) ussdMessage.getAdditionalAbsentSubscriberDiagnosticSM().toString(),
                ADDITIONAL_ABSENT_SUBSCRIBER_DIAGNOSTIC_SM, String.class);

    xml.add((MAPExtensionContainerImpl) ussdMessage.extensionContainer, MAP_EXTENSION_CONTAINER,
            MAPExtensionContainerImpl.class);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:17,代码来源:MAPErrorMessageAbsentSubscriberSMImpl.java


示例3: write

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
public void write(TestAtiClientConfigurationData clt, OutputElement xml) throws XMLStreamException {
    xml.setAttribute(SUBSCRIBER_IDENTITY_TYPE, clt.subscriberIdentityTypeIsImsi);

    if (clt.getLocationInformation)
        xml.setAttribute(GET_LOCATION_INFORMATION, clt.getLocationInformation);
    if (clt.getSubscriberState)
        xml.setAttribute(GET_SUBSCRIBER_STATE, clt.getSubscriberState);
    if (clt.getCurrentLocation)
        xml.setAttribute(GET_CURRENT_LOCATION, clt.getCurrentLocation);
    if (clt.getRequestedDomain != null)
        xml.setAttribute(GET_REQUESTED_DOMAIN, clt.getRequestedDomain);
    if (clt.getImei)
        xml.setAttribute(GET_IMEI, clt.getImei);
    if (clt.getMsClassmark)
        xml.setAttribute(GET_MS_CLASSMARK, clt.getMsClassmark);
    if (clt.getMnpRequestedInfo)
        xml.setAttribute(GET_MNP_REQUESTED_INFO, clt.getMnpRequestedInfo);

    xml.add(clt.addressNature.toString(), ADDRESS_NATURE, String.class);
    xml.add(clt.numberingPlan.toString(), NUMBERING_PLAN, String.class);
    xml.add(clt.gsmScfAddress, GSM_SCF_ADDRESS, String.class);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:23,代码来源:TestAtiClientConfigurationData.java


示例4: read

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
public void read(InputElement xml, MapConfigurationData_OldFormat map) throws XMLStreamException {
    int localSsn = xml.getAttribute(LOCAL_SSN).toInt();
    int remoteSsn = xml.getAttribute(REMOTE_SSN).toInt();

    map.setRemoteAddressDigits((String) xml.get(REMOTE_ADDRESS_DIGITS, String.class));
    map.setOrigReference((String) xml.get(ORIG_REFERENCE, String.class));
    map.setDestReference((String) xml.get(DEST_REFERENCE, String.class));

    String an = (String) xml.get(ORIG_REFERENCE_ADDRESS_NATURE, String.class);
    map.setOrigReferenceAddressNature(AddressNature.valueOf(an));
    String np = (String) xml.get(ORIG_REFERENCE_NUMBERING_PLAN, String.class);
    map.setOrigReferenceNumberingPlan(NumberingPlan.valueOf(np));
    an = (String) xml.get(DEST_REFERENCE_ADDRESS_NATURE, String.class);
    map.setDestReferenceAddressNature(AddressNature.valueOf(an));
    np = (String) xml.get(DEST_REFERENCE_NUMBERING_PLAN, String.class);
    map.setDestReferenceNumberingPlan(NumberingPlan.valueOf(np));
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:18,代码来源:MapConfigurationData_OldFormat.java


示例5: read

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
public void read(InputElement xml, TestSmsServerConfigurationData_OldFormat srv) throws XMLStreamException {
    srv.hlrSsn = xml.getAttribute(HLR_SSN).toInt();
    srv.vlrSsn = xml.getAttribute(VLR_SSN).toInt();

    srv.serviceCenterAddress = (String) xml.get(SERVICE_CENTER_ADDRESS, String.class);

    String an = (String) xml.get(ADDRESS_NATURE, String.class);
    srv.addressNature = AddressNature.valueOf(an);
    String np = (String) xml.get(NUMBERING_PLAN, String.class);
    srv.numberingPlan = NumberingPlan.valueOf(np);
    String mpv = (String) xml.get(MAP_PROTOCOL_VERSION, String.class);
    srv.mapProtocolVersion = MapProtocolVersion.createInstance(mpv);
    String ton = (String) xml.get(TYPE_OF_NUMBER, String.class);
    srv.typeOfNumber = TypeOfNumber.valueOf(ton);
    String npi = (String) xml.get(NUMBERING_PLAN_IDENTIFICATION, String.class);
    srv.numberingPlanIdentification = NumberingPlanIdentification.valueOf(npi);
    String sct = (String) xml.get(SMS_CODING_TYPE, String.class);
    srv.smsCodingType = SmsCodingType.createInstance(sct);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:20,代码来源:TestSmsServerConfigurationData_OldFormat.java


示例6: read

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
@Override
public void read(javolution.xml.XMLFormat.InputElement xml, MAPErrorMessageSMDeliveryFailureImpl errorMessage)
        throws XMLStreamException {
    MAP_ERROR_MESSAGE_XML.read(xml, errorMessage);
    errorMessage.mapProtocolVersion = xml.get(MAP_PROTOCOL_VERSION, Long.class);

    String str = xml.get(SM_ENUMERATE_DEL_FAIL_CAUSE, String.class);
    if (str != null)
        errorMessage.sMEnumeratedDeliveryFailureCause = Enum.valueOf(SMEnumeratedDeliveryFailureCause.class, str);

    ByteArrayContainer bc = xml.get(SIGNAL_INFO, ByteArrayContainer.class);
    if (bc != null) {
        errorMessage.signalInfo = bc.getData();
    }

    errorMessage.extensionContainer = xml.get(MAP_EXTENSION_CONTAINER, MAPExtensionContainerImpl.class);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:18,代码来源:MAPErrorMessageSMDeliveryFailureImpl.java


示例7: write

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
public void write(TestUssdClientConfigurationData clt, OutputElement xml) throws XMLStreamException {
    xml.setAttribute(DATA_CODING_SCHEME, clt.dataCodingScheme);
    xml.setAttribute(ALERTING_PATTERN, clt.alertingPattern);
    xml.setAttribute(MAX_CONCURENT_DIALOGS, clt.maxConcurrentDialogs);
    xml.setAttribute(ONE_NOTIFICATION_FOR_100_DIALOGS, clt.oneNotificationFor100Dialogs);
    xml.setAttribute(RETURN_20_PERS_DELIVERY_ERRORS, clt.return20PersDeliveryErrors);

    xml.add(clt.msisdnAddress, MSISDN_ADDRESS, String.class);
    xml.add(clt.msisdnAddressNature.toString(), MSISDN_ADDRESS_NATURE, String.class);
    xml.add(clt.msisdnNumberingPlan.toString(), MSISDN_NUMBERING_PLAN, String.class);
    xml.add(clt.sriResponseImsi, SRI_RESPONSE_IMSI, String.class);
    xml.add(clt.sriResponseVlr, SRI_RESPONSE_VLR, String.class);
    xml.add(clt.sriReaction.toString(), SRI_REACTION, String.class);

    xml.add(clt.ussdClientAction.toString(), USSD_CLIENT_ACTION, String.class);
    xml.add(clt.autoRequestString, AUTO_REQUEST_STRING, String.class);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:18,代码来源:TestUssdClientConfigurationData.java


示例8: read

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
public void read(InputElement xml, TestUssdClientConfigurationData_OldFormat clt) throws XMLStreamException {
    clt.dataCodingScheme = xml.getAttribute(DATA_CODING_SCHEME).toInt();
    clt.alertingPattern = xml.getAttribute(ALERTING_PATTERN).toInt();
    clt.maxConcurrentDialogs = xml.getAttribute(MAX_CONCURENT_DIALOGS).toInt();
    clt.oneNotificationFor100Dialogs = xml.getAttribute(ONE_NOTIFICATION_FOR_100_DIALOGS).toBoolean();

    clt.msisdnAddress = (String) xml.get(MSISDN_ADDRESS, String.class);
    String an = (String) xml.get(MSISDN_ADDRESS_NATURE, String.class);
    clt.msisdnAddressNature = AddressNature.valueOf(an);
    String np = (String) xml.get(MSISDN_NUMBERING_PLAN, String.class);
    clt.msisdnNumberingPlan = NumberingPlan.valueOf(np);

    String uca = (String) xml.get(USSD_CLIENT_ACTION, String.class);
    clt.ussdClientAction = UssdClientAction.createInstance(uca);
    clt.autoRequestString = (String) xml.get(AUTO_REQUEST_STRING, String.class);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:17,代码来源:TestUssdClientConfigurationData_OldFormat.java


示例9: read

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
@Override
public void read(javolution.xml.XMLFormat.InputElement xml, SupplementaryMessageImpl ussdMessage)
        throws XMLStreamException {
    MAP_MESSAGE_XML.read(xml, ussdMessage);

    int cbs = xml.getAttribute(DATA_CODING_SCHEME,-1);
    if(cbs != -1){
        ussdMessage.ussdDataCodingSch = new CBSDataCodingSchemeImpl(cbs);
    }

    String encodedString = xml.getAttribute(STRING, null);
    if (encodedString != null)
        try {
            ussdMessage.ussdString = new USSDStringImpl(encodedString, ussdMessage.ussdDataCodingSch, null);
        } catch (MAPException e) {
            logger.error("Error while trying to read ussd string", e);
        }
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:19,代码来源:SupplementaryMessageImpl.java


示例10: write

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
@Override
public void write(SupplementaryMessageImpl ussdMessage, javolution.xml.XMLFormat.OutputElement xml)
        throws XMLStreamException {
    MAP_MESSAGE_XML.write(ussdMessage, xml);
    if (ussdMessage.ussdDataCodingSch != null)
        xml.setAttribute(DATA_CODING_SCHEME, ussdMessage.ussdDataCodingSch.getCode());

    if (ussdMessage.ussdString != null)
        try {
            String ussdStr = ussdMessage.ussdString.getString(null);
            if (ussdStr != null)
                xml.setAttribute(STRING, ussdStr);
        } catch (MAPException e) {
            logger.error("Error while trying to write ussd string", e);
        }

}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:18,代码来源:SupplementaryMessageImpl.java


示例11: read

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
public void read(InputElement xml, SccpConfigurationData sccp) throws XMLStreamException {
    sccp.setRouteOnGtMode(xml.getAttribute(REMOTE_ON_GT_MODE).toBoolean());
    sccp.setRemoteSpc(xml.getAttribute(REMOTE_SPC).toInt());
    sccp.setLocalSpc(xml.getAttribute(LOCAL_SPC).toInt());
    sccp.setNi(xml.getAttribute(NI).toInt());
    sccp.setRemoteSsn(xml.getAttribute(REMOTE_SSN).toInt());
    sccp.setLocalSsn(xml.getAttribute(LOCAL_SSN).toInt());
    sccp.setTranslationType(xml.getAttribute(TRANSLATION_TYTE).toInt());

    String gtt = (String) xml.get(GLOBAL_TITLE_TYPE, String.class);
    sccp.setGlobalTitleType(GlobalTitleType.createInstance(gtt));
    String an = (String) xml.get(ADDRESS_NATURE, String.class);
    sccp.setNatureOfAddress(NatureOfAddress.valueOf(an));
    String np = (String) xml.get(NUMBERING_PLAN, String.class);
    sccp.setNumberingPlan(NumberingPlan.valueOf(np));
    String spv = (String) xml.get(SCCP_PROTOCOL_VERSION, String.class);
    if (spv != null)
        sccp.setSccpProtocolVersion(SccpProtocolVersion.valueOf(spv));
    sccp.setCallingPartyAddressDigits((String) xml.get(CALLING_PARTY_ADDRESS_DIGITS, String.class));
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:21,代码来源:SccpConfigurationData.java


示例12: read

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
@Override
public void read(javolution.xml.XMLFormat.InputElement xml, LocationInformationImpl locationInformation)
        throws XMLStreamException {
    locationInformation.ageOfLocationInformation = xml.get(AGE_OF_LOCATION_INFORMATION, Integer.class);
    locationInformation.geographicalInformation = xml.get(GEOGRAPHICAL_INFORMATION, GeographicalInformationImpl.class);
    locationInformation.vlrNumber = xml.get(VLR_NUMBER, ISDNAddressStringImpl.class);
    locationInformation.locationNumber = xml.get(LOCATION_NUMBER, LocationNumberMapImpl.class);
    locationInformation.cellGlobalIdOrServiceAreaIdOrLAI = xml.get(CELL_GLOBAL_ID_OR_SERVICE_AREA_ID_OR_LAI,
            CellGlobalIdOrServiceAreaIdOrLAIImpl.class);

    locationInformation.extensionContainer = xml.get(EXTENSION_CONTAINER, MAPExtensionContainerImpl.class);
    locationInformation.selectedLSAId = xml.get(SELECTED_LSA_ID, LSAIdentityImpl.class);
    locationInformation.mscNumber = xml.get(MSC_NUMBER, ISDNAddressStringImpl.class);
    locationInformation.geodeticInformation = xml.get(GEODETIC_INFORMATION, GeodeticInformationImpl.class);

    Boolean bval = xml.get(CURRENT_LOCATION_RETRIEVED, Boolean.class);
    if (bval != null)
        locationInformation.currentLocationRetrieved = bval;
    bval = xml.get(SAI_PRESENT, Boolean.class);
    if (bval != null)
        locationInformation.saiPresent = bval;
    locationInformation.locationInformationEPS = xml.get(LOCATION_INFORMATION_EPS, LocationInformationEPSImpl.class);
    locationInformation.userCSGInformation = xml.get(USER_CSG_INFORMATION, UserCSGInformationImpl.class);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:25,代码来源:LocationInformationImpl.java


示例13: read

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
@Override
public void read(javolution.xml.XMLFormat.InputElement xml, GeographicalInformationImpl geographicalInformation)
        throws XMLStreamException {
    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);

    try {
        geographicalInformation.setData(tos, lat, lng, unc);
    } catch (MAPException e) {
        throw new XMLStreamException("MAPException when deserializing GeographicalInformation", e);
    }
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:19,代码来源:GeographicalInformationImpl.java


示例14: read

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
public void read(InputElement xml, SccpConfigurationData_OldFormat sccp) throws XMLStreamException {
    sccp.setRouteOnGtMode(xml.getAttribute(REMOTE_ON_GT_MODE).toBoolean());
    sccp.setRemoteSpc(xml.getAttribute(REMOTE_SPC).toInt());
    sccp.setLocalSpc(xml.getAttribute(LOCAL_SPC).toInt());
    sccp.setNi(xml.getAttribute(NI).toInt());
    sccp.setRemoteSsn(xml.getAttribute(REMOTE_SSN).toInt());
    sccp.setLocalSsn(xml.getAttribute(LOCAL_SSN).toInt());
    sccp.setTranslationType(xml.getAttribute(TRANSLATION_TYTE).toInt());

    String gtt = (String) xml.get(GLOBAL_TITLE_TYPE, String.class);
    sccp.setGlobalTitleType(GlobalTitleType.createInstance(gtt));
    String an = (String) xml.get(ADDRESS_NATURE, String.class);
    sccp.setNatureOfAddress(NatureOfAddress.valueOf(an));
    String np = (String) xml.get(NUMBERING_PLAN, String.class);
    sccp.setNumberingPlan(NumberingPlan.valueOf(np));
    sccp.setCallingPartyAddressDigits((String) xml.get(CALLING_PARTY_ADDRESS_DIGITS, String.class));
    // for skipping previous data
    String extraLocalAddressDigits = (String) xml.get(EXTRA_LOCAL_ADDRESS_DIGITS, String.class);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:20,代码来源:SccpConfigurationData_OldFormat.java


示例15: read

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
public void read(InputElement xml, TestSmsClientConfigurationData_OldFormat clt) throws XMLStreamException {
    clt.smscSsn = xml.getAttribute(SMSC_SSN).toInt();

    clt.serviceCenterAddress = (String) xml.get(SERVICE_CENTER_ADDRESS, String.class);
    clt.sriResponseImsi = (String) xml.get(SRI_RESPONSE_IMSI, String.class);
    clt.sriResponseVlr = (String) xml.get(SRI_RESPONSE_VLR, String.class);

    String an = (String) xml.get(ADDRESS_NATURE, String.class);
    clt.addressNature = AddressNature.valueOf(an);
    String np = (String) xml.get(NUMBERING_PLAN, String.class);
    clt.numberingPlan = NumberingPlan.valueOf(np);
    String mpv = (String) xml.get(MAP_PROTOCOL_VERSION, String.class);
    clt.mapProtocolVersion = MapProtocolVersion.createInstance(mpv);
    String ton = (String) xml.get(TYPE_OF_NUMBER, String.class);
    clt.typeOfNumber = TypeOfNumber.valueOf(ton);
    String npi = (String) xml.get(NUMBERING_PLAN_IDENTIFICATION, String.class);
    clt.numberingPlanIdentification = NumberingPlanIdentification.valueOf(npi);
    String sct = (String) xml.get(SMS_CODING_TYPE, String.class);
    clt.smsCodingType = SmsCodingType.createInstance(sct);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:21,代码来源:TestSmsClientConfigurationData_OldFormat.java


示例16: read

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
@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);
    }
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:22,代码来源:GeodeticInformationImpl.java


示例17: write

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
@Override
public void write(UserCSGInformationImpl userCSGInformation, javolution.xml.XMLFormat.OutputElement xml)
        throws XMLStreamException {
    if (userCSGInformation.csgId != null) {
        xml.add((CSGIdImpl) userCSGInformation.csgId, CSG_ID, CSGIdImpl.class);
    }
    if (userCSGInformation.extensionContainer != null) {
        xml.add((MAPExtensionContainerImpl) userCSGInformation.extensionContainer, EXTENSION_CONTAINER,
                MAPExtensionContainerImpl.class);
    }
    if (userCSGInformation.accessMode != null) {
        xml.add((Integer) userCSGInformation.accessMode, ACCESS_MODE, Integer.class);
    }
    if (userCSGInformation.cmi != null) {
        xml.add((Integer) userCSGInformation.cmi, CMI, Integer.class);
    }
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:18,代码来源:UserCSGInformationImpl.java


示例18: read

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
@Override
public void read(javolution.xml.XMLFormat.InputElement xml, SupportedCamelPhasesImpl supportedCamelPhases) throws XMLStreamException {

    boolean phase1 = false;
    boolean phase2 = false;
    boolean phase3 = false;
    boolean phase4 = false;
    Boolean bval = xml.getAttribute(PHASE1, DEFAULT_BOOLEAN_VALUE);
    if (bval != null) {
        phase1 = bval;
    }
    bval = xml.getAttribute(PHASE2, DEFAULT_BOOLEAN_VALUE);
    if (bval != null) {
        phase2 = bval;
    }
    bval = xml.getAttribute(PHASE3, DEFAULT_BOOLEAN_VALUE);
    if (bval != null) {
        phase3 = bval;
    }
    bval = xml.getAttribute(PHASE4, DEFAULT_BOOLEAN_VALUE);
    if (bval != null) {
        phase4 = bval;
    }

    supportedCamelPhases.setData(phase1, phase2, phase3, phase4);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:27,代码来源:SupportedCamelPhasesImpl.java


示例19: read

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
public void read(InputElement xml, TestUssdServerConfigurationData srv) throws XMLStreamException {
    srv.dataCodingScheme = xml.getAttribute(DATA_CODING_SCHEME).toInt();
    srv.alertingPattern = xml.getAttribute(ALERTING_PATTERN).toInt();
    srv.oneNotificationFor100Dialogs = xml.getAttribute(ONE_NOTIFICATION_FOR_100_DIALOGS).toBoolean();

    srv.msisdnAddress = (String) xml.get(MSISDN_ADDRESS, String.class);
    srv.autoResponseString = (String) xml.get(AUTO_RESPONSE_STRING, String.class);
    srv.autoUnstructured_SS_RequestString = (String) xml.get(AUTO_UNSTRUCTURED_SS_REQUEST_STRING, String.class);

    String an = (String) xml.get(MSISDN_ADDRESS_NATURE, String.class);
    srv.msisdnAddressNature = AddressNature.valueOf(an);
    String np = (String) xml.get(MSISDN_NUMBERING_PLAN, String.class);
    srv.msisdnNumberingPlan = NumberingPlan.valueOf(np);
    String ss_act = (String) xml.get(PROCESS_SS_REQUEST_ACTION, String.class);
    srv.processSsRequestAction = ProcessSsRequestAction.createInstance(ss_act);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:17,代码来源:TestUssdServerConfigurationData.java


示例20: write

import javolution.xml.stream.XMLStreamException; //导入依赖的package包/类
@Override
public void write(MAPErrorMessageSMDeliveryFailureImpl errorMessage, javolution.xml.XMLFormat.OutputElement xml)
        throws XMLStreamException {
    MAP_ERROR_MESSAGE_XML.write(errorMessage, xml);
    xml.add(errorMessage.getMapProtocolVersion(), MAP_PROTOCOL_VERSION, Long.class);

    if (errorMessage.getSMEnumeratedDeliveryFailureCause() != null)
        xml.add((String) errorMessage.getSMEnumeratedDeliveryFailureCause().toString(), SM_ENUMERATE_DEL_FAIL_CAUSE,
                String.class);

    if (errorMessage.signalInfo != null) {
        ByteArrayContainer bac = new ByteArrayContainer(errorMessage.signalInfo);
        xml.add(bac, SIGNAL_INFO, ByteArrayContainer.class);
    }

    xml.add((MAPExtensionContainerImpl) errorMessage.extensionContainer, MAP_EXTENSION_CONTAINER,
            MAPExtensionContainerImpl.class);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:19,代码来源:MAPErrorMessageSMDeliveryFailureImpl.java



注:本文中的javolution.xml.stream.XMLStreamException类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Property类代码示例发布时间:2022-05-23
下一篇:
Java AppearanceConfig类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap