com.sun.tools.txw2.model
Class XmlNode
java.lang.Object
com.sun.tools.txw2.model.Leaf
com.sun.tools.txw2.model.Node
com.sun.tools.txw2.model.WriterNode
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.Node |
leaf |
Fields inherited from class com.sun.tools.txw2.model.Leaf |
location |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
XmlNode
s.
XmlNode
protected XmlNode(Locator location,
QName name,
Leaf leaf)
collectChildren
protected final Set<Leaf> collectChildren()
- Expand all refs and collect all children.
Copyright © 2012 Oracle. All Rights Reserved.