Examples of XplElement


Examples of org.apache.sling.scripting.xproc.xpl.api.XplElement

public class XplElementFactoryImpl implements XplElementFactory {
 
  public XplElement createXplElement(QName type, Map<String, String> attributes) {
   
    XplElement xplElement;
   
    if (XplConstants.QNAME_PIPELINE.equals(type)) {
      xplElement = new PipelineImpl();
    } else if (XplConstants.QNAME_XSLT.equals(type)) {
      xplElement = new XsltImpl();
    } else if (XplConstants.QNAME_INPUT.equals(type)) {
      xplElement = new InputImpl();
    } else if (XplConstants.QNAME_DOCUMENT.equals(type)) {
      xplElement = new DocumentImpl();
    } else {
      throw new IllegalArgumentException("An xpl element of type '" + type + "' could not be created.");
    }
   
    xplElement.setAttributes(attributes);
   
    return xplElement;
  }
View Full Code Here

Examples of org.apache.sling.scripting.xproc.xpl.api.XplElement

            int length = attributes.getLength();
            for (int i = 0; i < length; i++) {
              atts.put(attributes.getQName(i), attributes.getValue(i));
            }
     
      XplElement xplElement = createXplElement(localName, atts);
      this.currentXplElement.addChild(xplElement);
      this.currentXplElement = xplElement;
    }
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.