示例#1
0
  public static String getSWAgentXML(SWAgent swAgent) {
    QName qName = SWAgent.type.getOuterType().getDocumentElementName();
    XmlOptions xmlOptions = XMLNameSpaceTransformer.transformXML(qName);
    String swAgentXML = swAgent.xmlText(xmlOptions);

    return swAgentXML;
  }
示例#2
0
  public static String getRxMessageXML(RxMessage rxMessage) {
    QName qName = RxMessage.type.getOuterType().getDocumentElementName();
    XmlOptions xmlOptions = XMLNameSpaceTransformer.transformXML(qName);
    String rxMessageXML = rxMessage.xmlText(xmlOptions);

    return rxMessageXML;
  }
示例#3
0
  public static String getGlobalStateDefinitionsXML(GlobalStateDefinition globalStateDefinition) {
    QName qName = GlobalStateDefinition.type.getOuterType().getDocumentElementName();
    XmlOptions xmlOptions = XMLNameSpaceTransformer.transformXML(qName);
    String globalStateDefinitionXML = globalStateDefinition.xmlText(xmlOptions);

    return globalStateDefinitionXML;
  }
示例#4
0
  public static String getJobPropertiesXML(JobProperties jobProperties) {
    QName qName = JobProperties.type.getOuterType().getDocumentElementName();
    XmlOptions xmlOptions = XMLNameSpaceTransformer.transformXML(qName);
    String jobPropertiesXML = jobProperties.xmlText(xmlOptions);

    return jobPropertiesXML;
  }
示例#5
0
  public static String getResourceXML(
      com.likya.tlos.model.xmlbeans.resourceextdefs.ResourceDocument.Resource resource) {
    QName qName =
        com.likya.tlos.model.xmlbeans.resourceextdefs.ResourceDocument.Resource.type
            .getOuterType()
            .getDocumentElementName();
    XmlOptions xmlOptions = XMLNameSpaceTransformer.transformXML(qName);
    String resourceXML = resource.xmlText(xmlOptions);

    return resourceXML;
  }