Package org.dykman.dexter.descriptor

Examples of org.dykman.dexter.descriptor.Descriptor


        if(docel.hasAttribute(nsspec))  docel.removeAttribute(nsspec);
      }
    }
    // convert dexter attributes
    scanDocument(document);
    Descriptor descriptor = marshall(document);

    XSLTDocSequencer sequencer = new XSLTDocSequencer(
        this,builder,filename, encoding);
    sequencer.setDexterNamespaces(dexterNamespaces);
    sequencer.setIdNames(idNames);
View Full Code Here


      taintAncestors(n);
    }
   
  }
  public  Descriptor marshallNode(Node node) {
       Descriptor descriptor = new NodeDescriptor(node);
       @SuppressWarnings("unchecked")
    List<NodeSpecifier> list = (List<NodeSpecifier>) node
             .getUserData(DexterityConstants.DEXTER_SPECIFIERS);
       if (list != null) {
         Iterator<NodeSpecifier> it = list.iterator();
View Full Code Here

       }
       return descriptor;
  }

  public Descriptor marshall(Node node) {
    Descriptor parent;
 
    if((node.getNodeType() != Node.ELEMENT_NODE) || (node.getUserData(DEXTER_TAINT) != null)) {
      parent = marshallNode(node);
      NodeList children = node.getChildNodes();
      int nc = children.getLength();
      for (int i = 0; i < nc; ++i)
      {
        Node child = children.item(i);
        if(child != null &&  child.getParentNode() != null)
        {
          parent.appendChild(marshall(child));
        }
     
      }
    } else {
      parent = new PassthroughDescriptor(node);
View Full Code Here

        if(docel.hasAttribute(nsspec))  docel.removeAttribute(nsspec);
      }
    }
    // convert dexter attributes
    scanDocument(document);
    Descriptor descriptor = marshall(document);

    XSLTDocSequencer sequencer = new XSLTDocSequencer(
        this,builder,filename, encoding);
    sequencer.setDexterNamespaces(dexterNamespaces);
    sequencer.setIdNames(idNames);
View Full Code Here

      taintAncestors(n);
    }
   
  }
  public  Descriptor marshallNode(Node node) {
       Descriptor descriptor = new NodeDescriptor(node);
       @SuppressWarnings("unchecked")
    List<NodeSpecifier> list = (List<NodeSpecifier>) node
             .getUserData(DexterityConstants.DEXTER_SPECIFIERS);
       if (list != null) {
         Iterator<NodeSpecifier> it = list.iterator();
View Full Code Here

       }
       return descriptor;
  }

  public Descriptor marshall(Node node) {
    Descriptor parent;
 
    if((node.getNodeType() != Node.ELEMENT_NODE) || (node.getUserData(DEXTER_TAINT) != null)) {
      parent = marshallNode(node);
      NodeList children = node.getChildNodes();
      int nc = children.getLength();
      for (int i = 0; i < nc; ++i)
      {
        Node child = children.item(i);
        if(child != null &&  child.getParentNode() != null)
        {
          parent.appendChild(marshall(child));
        }
     
      }
    } else {
      parent = new PassthroughDescriptor(node);
View Full Code Here

TOP

Related Classes of org.dykman.dexter.descriptor.Descriptor

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.