Package org.xmlpull.infoset

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


            // This code doesn't work when the output is a complex type.
            // Object output = this.outputMessage.getObjectPart(name);
            // return output;

            XmlElement outputElement = (XmlElement) element;
            Iterator valueElementItr = outputElement.elements(null, name).iterator();
            LinkedList<String> ret = new LinkedList<String>();
            while(valueElementItr.hasNext()){
              XmlElement valueElement = (XmlElement) valueElementItr.next();
              Iterator childIt = valueElement.children().iterator();
               int numberOfChildren = 0;
View Full Code Here


 
 
 
  public void process(WsdlDefinitions wsdl){
    XmlElement types = wsdl.getTypes();
    Iterable<XmlElement> schemas = types.elements(null, "schema");
    XmlElement theSchema = null;
    LinkedList<XmlElement> removeList = new LinkedList<XmlElement>();
    for (XmlElement schema : schemas) {
      String tns = schema.attributeValue("targetNamespace");
      if(null != tns  && -1 != tns.indexOf("http://www.extreme.indiana.edu/xbaya")){
View Full Code Here

    XmlElement graphElement = workflowElement
        .element(GraphSchema.GRAPH_TAG);
    this.graph = WSGraphFactory.createGraph(graphElement);

    XmlElement wsdlsElement = workflowElement.element(WSDLS_TAG);
    for (XmlElement wsdlElement : wsdlsElement.elements(null, WSDL_TAG)) {
      String wsdlText = wsdlElement.requiredText();
      WsdlDefinitions wsdl = WSDLUtil.stringToWSDL(wsdlText);
      String id = wsdlElement.attributeValue(NS_XWF, ID_ATTRIBUTE);
      if (id == null || id.length() == 0) {
        // xwf up to 2.2.6_2 doesn't have ID.
View Full Code Here

        }
    }

  private void addImportIfNecessary(XmlElement importEle) {
    XmlElement schema = this.definitions.getTypes().element(WSConstants.SCHEMA_TAG);
    Iterable<XmlElement> imports = schema.elements(null, WSConstants.IMPORT_TAG);
    for (XmlElement importElement : imports) {
      if(importElement.attributeValue("namespace").equals(importEle.attributeValue("namespace")) &&
          importElement.attributeValue("schemaLocation").equals(importEle.attributeValue("schemaLocation"))){
        return;
      }
View Full Code Here

  @SuppressWarnings("null")
  public void addReceive(WsdlDefinitions wsdl, Node activeNode, Workflow workflow) throws CloneNotSupportedException, XmlValidationException, GraphException, ComponentException {
    XmlElement types = wsdl.getTypes();

    Iterator<XmlElement> schemas = types.elements(null, "schema")
        .iterator();
    XmlElement lastScheme = null;
    while (schemas.hasNext()) {
      lastScheme = (XmlElement) schemas.next();
View Full Code Here

public class TridentTransformer {

    public void process(WsdlDefinitions wsdl) {
        XmlElement types = wsdl.getTypes();
        Iterable<XmlElement> schemas = types.elements(null, "schema");
        LinkedList<XmlElement> removeList = new LinkedList<XmlElement>();
        for (XmlElement schema : schemas) {
            String tns = schema.attributeValue("targetNamespace");
            if (null != tns && -1 != tns.indexOf("http://www.extreme.indiana.edu/xbaya")) {
            } else {
View Full Code Here

            // This code doesn't work when the output is a complex type.
            // Object output = this.outputMessage.getObjectPart(name);
            // return output;

            XmlElement outputElement = (XmlElement) element;
            Iterator valueElementItr = outputElement.elements(null, name).iterator();
            LinkedList<String> ret = new LinkedList<String>();
            while (valueElementItr.hasNext()) {
                XmlElement valueElement = (XmlElement) valueElementItr.next();
                Iterator childIt = valueElement.children().iterator();
                int numberOfChildren = 0;
View Full Code Here

        // Graph
        XmlElement graphElement = workflowElement.element(GraphSchema.GRAPH_TAG);
        this.graph = WSGraphFactory.createGraph(graphElement);
        WsdlDefinitions wsdl = null;
        XmlElement wsdlsElement = workflowElement.element(WSDLS_TAG);
        for (XmlElement wsdlElement : wsdlsElement.elements(null, WSDL_TAG)) {
            String wsdlText = wsdlElement.requiredText();
            try {
                wsdl = WSDLUtil.stringToWSDL(wsdlText);
            } catch (UtilsException e) {
                logger.error(e.getMessage(), e);
View Full Code Here

        return null;
    }

    private void addImportIfNecessary(XmlElement importEle) {
        XmlElement schema = this.definitions.getTypes().element(WSConstants.SCHEMA_TAG);
        Iterable<XmlElement> imports = schema.elements(null, WSConstants.IMPORT_TAG);
        for (XmlElement importElement : imports) {
            if (importElement.attributeValue("namespace").equals(importEle.attributeValue("namespace"))
                    && importElement.attributeValue("schemaLocation")
                            .equals(importEle.attributeValue("schemaLocation"))) {
                return;
View Full Code Here

     * @return The schema that includes the type definition
     */
    public static XmlElement getSchema(WsdlDefinitions definitions, QName paramType) throws UtilsException {
        XmlElement types = definitions.getTypes();

        Iterable<XmlElement> schemas = types.elements(WSConstants.XSD_NS, WSConstants.SCHEMA_TAG);
        for (XmlElement schema : schemas) {
            if (isTypeDefinedInSchema(paramType, schema)) {
                return schema;
            }
        }
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.