Package org.xmlpull.v1.builder

Examples of org.xmlpull.v1.builder.XmlAttribute


    {
        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


    {
        this.container = new Dsmlv2Container( codec );

        this.container.setGrammar( Dsmlv2ResponseGrammar.getInstance() );

        XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
        factory.setNamespaceAware( true );
        XmlPullParser xpp = factory.newPullParser();

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

    {
        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

     * @return a new parser instance
     * @throws XmlPullParserException if the factory fails
     * @since 1.4.1
     */
    public static XmlPullParser createDefaultParser() throws XmlPullParserException {
        XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
        return factory.newPullParser();
    }
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

        property.put("componentContentId", componentContentId);

      Iterator attributesIterator = infosetItem.attributes();
      while(attributesIterator.hasNext())
      {
        XmlAttribute attribute = (XmlAttribute)attributesIterator.next();
        if(attribute.getName().startsWith("path_"))
          property.put(attribute.getName(), attribute.getValue());
      }

      if(propertyName.equals("GUFlashImages") || propertyName.equals("MiniArticleShortcuts"))
        this.templateController.getDeliveryContext().addDebugInformation("DEBUG INFO property halfway: " + property + " (Thread" + Thread.currentThread().getId() + ").\n");
View Full Code Here

          property.put("isPagePartReference", (isPagePartRef == null ? "false" : isPagePartRef));
         
          Iterator attributesIterator = propertyElement.attributes();
          while(attributesIterator.hasNext())
          {
            XmlAttribute attribute = (XmlAttribute)attributesIterator.next();
            if(attribute.getName().startsWith("path_"))
              property.put(attribute.getName(), attribute.getValue());
          }
         
          if(path != null)
          {
            if(propertyName.equals(InfoGlueComponent.CACHE_RESULT_PROPERTYNAME) && (path.equalsIgnoreCase("true") || path.equalsIgnoreCase("yes")))
View Full Code Here

          property.put("isPagePartReference", (isPagePartRef == null ? "false" : isPagePartRef));
         
          Iterator attributesIterator = propertyElement.attributes();
          while(attributesIterator.hasNext())
          {
            XmlAttribute attribute = (XmlAttribute)attributesIterator.next();
            if(attribute.getName().startsWith("path_"))
              property.put(attribute.getName(), attribute.getValue());
          }
         
          if(path != null)
          {
            if(propertyName.equals(InfoGlueComponent.CACHE_RESULT_PROPERTYNAME) && (path.equalsIgnoreCase("true") || path.equalsIgnoreCase("yes")))
View Full Code Here

              property.put("isPagePartReference", (isPagePartRef == null ? "false" : isPagePartRef));
             
              Iterator attributesIterator = propertyElement.attributes();
              while(attributesIterator.hasNext())
              {
                XmlAttribute attribute = (XmlAttribute)attributesIterator.next();
                if(attribute.getName().startsWith("path_"))
                  property.put(attribute.getName(), attribute.getValue());
              }
             
              if(path != null)
              {
                if(propertyName.equals(InfoGlueComponent.CACHE_RESULT_PROPERTYNAME) && (path.equalsIgnoreCase("true") || path.equalsIgnoreCase("yes")))
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.XmlAttribute

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.