Package org.xmlpull.infoset

Examples of org.xmlpull.infoset.XmlElement.addElement()


    // XmlElement modifiedTimeElement = graphElement.addElement(
    // XgraphSchema.NS, "modifiedTime");
    // modifiedTimeElement.addChild(new GregorianCalendar().toString());

    // Graph
    workflowElement.addElement(this.graph.toXML());

    // WSDLs
    XmlElement wsdlsElement = workflowElement.addElement(NS_XWF, WSDLS_TAG);
    for (String id : wsdls.keySet()) {
      WsdlDefinitions wsdl = wsdls.get(id);
View Full Code Here


        // appinfo
        if (appinfo != null) {
            XmlElement annotation = element.element(null,
                    WSConstants.ANNOTATION_TAG, true);
            annotation.addElement(XMLUtil.deepClone(appinfo));
        }

        //
        // Add default value if it's input.
        //
View Full Code Here

                XmlElement valueElement = XMLUtil.deepClone((XmlElement) value);
                XmlElement annotation = element.element(null,
                        WSConstants.ANNOTATION_TAG, true);
                XmlElement defaultElement = annotation
                        .addElement(WSComponentPort.DEFAULT);
                defaultElement.addElement(valueElement);
            }
        }

        return element;
    }
View Full Code Here

              WsdlMessagePart part  = wsdl.getMessage(wsdlOperation.getInput().getMessage().getLocalPart()).parts().iterator().next();
              XmlElement childElement = container.addElement(part.getElement().getLocalPart());
              Iterator<GpelAssignCopy> copyItr = assign.copyOperations().iterator();
              while(copyItr.hasNext()){
                GpelAssignCopy copyItm = copyItr.next();
                childElement.addElement(getElementName(copyItm.getTo().getQuery()));
                if(messagePartName == null){
                  messagePartName = copyItm.getTo().xml().attributeValue(PART_STR);
                }
              }
              break;
View Full Code Here

              WsdlMessagePart part  = workflowWSDL.getMessage(wsdlOperation.getOutput().getMessage().getLocalPart()).parts().iterator().next();
              XmlElement childElement = container.addElement(part.getElement().getLocalPart());
              Iterator<GpelAssignCopy> copyItr = assign.copyOperations().iterator();
              while(copyItr.hasNext()){
                GpelAssignCopy copyItm = copyItr.next();
                childElement.addElement(getElementName(copyItm.getTo().getQuery()));
                if(messagePartName == null){
                  messagePartName = copyItm.getTo().xml().attributeValue(PART_STR);
                }
              }
          }
View Full Code Here

        // add metadata
        if (appinfo != null) {
            XmlElement annotation = element
                    .addElement(WSConstants.ANNOTATION_TAG);
            annotation.addElement(XMLUtil.deepClone(appinfo));
        }

        XmlElement complex = schema.addElement(WSConstants.COMPLEX_TYPE_TAG);
        complex.setAttributeValue(WSConstants.NAME_ATTRIBUTE, type);
View Full Code Here

        // XmlElement modifiedTimeElement = graphElement.addElement(
        // XgraphSchema.NS, "modifiedTime");
        // modifiedTimeElement.addChild(new GregorianCalendar().toString());

        // Graph
        workflowElement.addElement(this.graph.toXML());

        // WSDLs
        XmlElement wsdlsElement = workflowElement.addElement(NS_XWF, WSDLS_TAG);
        for (String id : wsdls.keySet()) {
            WsdlDefinitions wsdl = wsdls.get(id);
View Full Code Here

        // add metadata
        if (appinfo != null) {
            XmlElement annotation = element.addElement(WSConstants.ANNOTATION_TAG);
            try {
                annotation.addElement(XMLUtil.deepClone(appinfo));
            } catch (UtilsException e) {
                e.printStackTrace();
            }
        }
View Full Code Here

        // appinfo
        if (appinfo != null) {
            XmlElement annotation = element.element(null, WSConstants.ANNOTATION_TAG, true);
            try {
                annotation.addElement(XMLUtil.deepClone(appinfo));
            } catch (UtilsException e) {
                e.printStackTrace();
            }
        }
View Full Code Here

                } catch (UtilsException e) {
                    e.printStackTrace();
                }
                XmlElement annotation = element.element(null, WSConstants.ANNOTATION_TAG, true);
                XmlElement defaultElement = annotation.addElement(WSComponentPort.DEFAULT);
                defaultElement.addElement(valueElement);
            }
        }

        return element;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.