Package org.xmlpull.v1.builder

Examples of org.xmlpull.v1.builder.Iterable


    {
        this.container = new Dsmlv2Container( grammar.getLdapCodecService() );
        this.container.setGrammar( grammar );
        this.grammar = grammar;
       
        XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
        factory.setNamespaceAware( true );
        XmlPullParser xpp = factory.newPullParser();

        container.setParser( xpp );
    }
View Full Code Here


  /** XML namespace dictionary. */
  private final XmlNamespaceDictionary namespaceDictionary;

  public final void writeTo(OutputStream out) throws IOException {
    XmlSerializer serializer = Xml.createSerializer();
    serializer.setOutput(out, getCharset().name());
    writeTo(serializer);
  }
View Full Code Here

              throw new XBayaException(message);
          }

          if (this.portTypeQName == null) {
              try {
                  Iterable portTypes = this.abstractDefinitions.getPortTypes();
                  WsdlPortType portType = (WsdlPortType) portTypes.iterator()
                          .next();
                  String portTypeName = portType.getPortTypeName();
                  String targetNamespace = this.abstractDefinitions
                          .getTargetNamespace();
                  this.portTypeQName = new QName(targetNamespace, portTypeName);
View Full Code Here

    private static ArrayList<String> findArrayValue(String name,
            WSIFMessageElement response) {
        XmlElement param = response.element(null, name);
        if (param != null) {
            Iterable it = param.elements(null, "value");
            if (it != null) {
                ArrayList<String> values = new ArrayList<String>();

                Iterator arrayValues = it.iterator();
                while (arrayValues.hasNext()) {
                    values.add(((XmlElement) arrayValues.next())
                            .requiredTextContent());
                }
                return values;
View Full Code Here

      throw new XBayaException(message);
    }

    if (this.portTypeQName == null) {
      try {
        Iterable portTypes = this.abstractDefinitions.getPortTypes();
        WsdlPortType portType = (WsdlPortType) portTypes.iterator()
            .next();
        String portTypeName = portType.getPortTypeName();
        String targetNamespace = this.abstractDefinitions
            .getTargetNamespace();
        this.portTypeQName = new QName(targetNamespace, portTypeName);
View Full Code Here

    }

    public static ArrayList<String> findArrayValue(String name, WSIFMessageElement response) {
        XmlElement param = response.element(null, name);
        if (param != null) {
            Iterable it = param.elements(null, "value");
            if (it != null) {
                ArrayList<String> values = new ArrayList<String>();

                Iterator arrayValues = it.iterator();
                while (arrayValues.hasNext()) {
                    values.add(((XmlElement) arrayValues.next()).requiredTextContent());
                }
                return values;
            }
View Full Code Here

    }

    public static ArrayList<String> findArrayValue(String name, WSIFMessageElement response) {
        XmlElement param = response.element(null, name);
        if (param != null) {
            Iterable it = param.elements(null, "value");
            if (it != null) {
                ArrayList<String> values = new ArrayList<String>();

                Iterator arrayValues = it.iterator();
                while (arrayValues.hasNext()) {
                    values.add(((XmlElement) arrayValues.next()).requiredTextContent());
                }
                return values;
            }
View Full Code Here

    }

    private static ArrayList<String> findArrayValue(String name, WSIFMessageElement response) {
        XmlElement param = response.element(null, name);
        if (param != null) {
            Iterable it = param.elements(null, "value");
            if (it != null) {
                ArrayList<String> values = new ArrayList<String>();

                Iterator arrayValues = it.iterator();
                while (arrayValues.hasNext()) {
                    values.add(((XmlElement) arrayValues.next()).requiredTextContent());
                }
                return values;
            }
View Full Code Here

    }

    private static ArrayList<String> findArrayValue(String name, WSIFMessageElement response) {
        XmlElement param = response.element(null, name);
        if (param != null) {
            Iterable it = param.elements(null, "value");
            if (it != null) {
                ArrayList<String> values = new ArrayList<String>();

                Iterator arrayValues = it.iterator();
                while (arrayValues.hasNext()) {
                    values.add(((XmlElement) arrayValues.next()).requiredTextContent());
                }
                return values;
            }
View Full Code Here

                QName type = ((WSIFMessageElement) this.inputMessage).getPartType(name);
                if (LEADTypes.isArrayType(type)) {
                    // split string into items using " " as separator
                    Pattern pattern = Pattern.compile("[,\\s]+");
                    String[] result = pattern.split((String) value);
                    XmlElement arrayEl = XmlConstants.BUILDER.newFragment(name);
                    for (int i = 0; i < result.length; i++) {
                        logger.debug("split=" + result[i]);
                        arrayEl.addElement("value").addChild(result[i]);
                    }
                    this.inputMessage.setObjectPart(name, arrayEl);
                    value = null; // no need to set string value below
                }
View Full Code Here

TOP

Related Classes of org.xmlpull.v1.builder.Iterable

Copyright © 2018 www.massapicom. 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.