com.sun.tools.txw2.model
Class XmlNode

java.lang.Object
  extended by com.sun.tools.txw2.model.Leaf
      extended by com.sun.tools.txw2.model.Node
          extended by com.sun.tools.txw2.model.WriterNode
              extended by com.sun.tools.txw2.model.XmlNode
All Implemented Interfaces:
Iterable<Leaf>, org.kohsuke.rngom.ast.om.ParsedPattern
Direct Known Subclasses:
Attribute, Element

public abstract class XmlNode
extends WriterNode

Either an Element or Attribute.

Author:
Kohsuke Kawaguchi

Field Summary
 QName name
          Name of the attribute/element.
 
Fields inherited from class com.sun.tools.txw2.model.WriterNode
alternativeName
 
Fields inherited from class com.sun.tools.txw2.model.Node
leaf
 
Fields inherited from class com.sun.tools.txw2.model.Leaf
location
 
Constructor Summary
protected XmlNode(Locator location, QName name, Leaf leaf)
           
 
Method Summary
protected  Set<Leaf> collectChildren()
          Expand all refs and collect all children.
 
Methods inherited from class com.sun.tools.txw2.model.Node
addChild, hasOneChild, iterator
 
Methods inherited from class com.sun.tools.txw2.model.Leaf
createDataMethod, getNext, getPrev, merge, siblings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public final QName name
Name of the attribute/element. In TXW, we ignore all infinite names. (finite name class will be expanded to a list of XmlNodes.

Constructor Detail

XmlNode

protected XmlNode(Locator location,
                  QName name,
                  Leaf leaf)
Method Detail

collectChildren

protected final Set<Leaf> collectChildren()
Expand all refs and collect all children.



Copyright © 2013 Oracle. All Rights Reserved.