Package org.dom4j

Examples of org.dom4j.Element.attributes()


   
    void getAttributes(Object node, String localName, String namespaceUri, List result) {
        if(node instanceof Element) {
            Element e = (Element)node;
            if(localName == null) {
                result.addAll(e.attributes());
            }
            else {
                Attribute attr = e.attribute(e.getQName().getDocumentFactory().createQName(localName, "", namespaceUri));
                if(attr != null) {
                    result.add(attr);
View Full Code Here


            String id = oneImplementation.attributeValue("id");
            String extensionClass = oneImplementation.attributeValue("class");
            LOG.fine("impl: point="+pointId+" class="+extensionClass);
            Extension extension = new Extension(pPluginDescriptor,
                                                pointId, id, extensionClass);
            List list = oneImplementation.attributes();
            for (int k = 0; k < list.size(); k++) {
              Attribute attribute = (Attribute) list.get(k);
              String name = attribute.getName();
              if (name.equals("id") || name.equals("class"))
                continue;
View Full Code Here

  @SuppressWarnings("unchecked")
    public XdpTreeNode(Node node) {
    super(null, node);
    if (node instanceof Element) {
      Element element = (Element)node;
      addChildNodes(element.attributes());
    }
    if (node instanceof Branch) {
      Branch branch = (Branch) node;
      addChildNodes(branch.content());
    }
View Full Code Here

      int nr = 0;
      for (Node node : nodes) {
        nr++;
        String name = "PentahoDs" + nr;
        Element e = (Element) node;
        List<Attribute> list = e.attributes();
        for (Attribute attribute : list)
        {
          String aname = attribute.getName();
          if ("name".equals(aname)) {
            name = attribute.getStringValue()
View Full Code Here

   
    void getAttributes(Object node, String localName, String namespaceUri, List result) {
        if(node instanceof Element) {
            Element e = (Element)node;
            if(localName == null) {
                result.addAll(e.attributes());
            }
            else {
                Attribute attr = e.attribute(e.getQName().getDocumentFactory().createQName(localName, "", namespaceUri));
                if(attr != null) {
                    result.add(attr);
View Full Code Here

   */
  public XdpTreeNode(Node node) {
    super(null, node);
    if (node instanceof Element) {
      Element element = (Element)node;
      addChildNodes(element.attributes());
    }
    if (node instanceof Branch) {
      Branch branch = (Branch) node;
      addChildNodes(branch.content());
    }
View Full Code Here

    protected Element getTransformElementCopy() {
        Element tempElement = transformElement.createCopy();
        List<Attribute> newAttributes = new ArrayList<Attribute>();

        for (Attribute attribute : (List<Attribute>) tempElement.attributes()) {
            if (XdtConstants.XDT_NAMESPACE.equals(attribute.getNamespaceURI()))
                continue;
            newAttributes.add(attribute);
        }
View Full Code Here

      {
         Element interceptor = (Element) interceptors.get(i);
         String code = interceptor.attributeValue("code");
         DescriptorSupport interceptorDescr = new DescriptorSupport();
         interceptorDescr.setField("code", code);
         List attributes = interceptor.attributes();
         for(int a = 0; a < attributes.size(); a ++)
         {
            Attribute attr = (Attribute) attributes.get(a);
            String name = attr.getName();
            String value = attr.getValue();
View Full Code Here

    protected Element getTransformElementCopy() {
        Element tempElement = transformElement.createCopy();
        List<Attribute> newAttributes = new ArrayList<Attribute>();

        // Clean XDT Schema Reference
        for (Attribute attribute : (List<Attribute>) tempElement.attributes()) {
            if (XdtConstants.XDT_NAMESPACE.equals(attribute.getNamespaceURI()))
                continue;
            newAttributes.add(attribute);
        }
View Full Code Here

              Map property = new HashMap();
              property.put("name", propertyName);
              property.put("path", path);
              property.put("type", type);
             
              List attributes = propertyElement.attributes();
              Iterator attributesIterator = attributes.iterator();
              while(attributesIterator.hasNext())
              {
                Attribute attribute = (Attribute)attributesIterator.next();
                if(attribute.getName().startsWith("path_"))
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.