public class NodeSet extends java.util.LinkedHashSet<WriterNode>
Modifier and Type | Field and Description |
---|---|
(package private) com.sun.codemodel.JCodeModel |
codeModel |
(package private) java.lang.String |
defaultNamespace
The namespace URI declared in
XmlNamespace . |
(package private) TxwOptions |
opts |
private java.util.Set<Element> |
rootElements
Set of all the
Element s that can be root. |
Constructor and Description |
---|
NodeSet(TxwOptions opts,
Leaf entry) |
Modifier and Type | Method and Description |
---|---|
private boolean |
add(Define def) |
private void |
addAll(java.lang.Iterable<Leaf> c) |
(package private) com.sun.codemodel.JDefinedClass |
createClass(java.lang.String name) |
private void |
markRoot(java.lang.Iterable<Leaf> c,
java.util.Set<Element> rootElements)
Marks all the element children as root.
|
<T extends WriterNode> |
subset(java.lang.Class<T> t) |
void |
write(TxwOptions opts)
Generate code
|
add, clear, clone, contains, isEmpty, iterator, remove, size
addAll, containsAll, retainAll, toArray, toArray, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
final TxwOptions opts
final com.sun.codemodel.JCodeModel codeModel
private final java.util.Set<Element> rootElements
Element
s that can be root.final java.lang.String defaultNamespace
XmlNamespace
.public NodeSet(TxwOptions opts, Leaf entry)
private void markRoot(java.lang.Iterable<Leaf> c, java.util.Set<Element> rootElements)
private void addAll(java.lang.Iterable<Leaf> c)
private boolean add(Define def)
public <T extends WriterNode> java.util.Collection<T> subset(java.lang.Class<T> t)
public void write(TxwOptions opts)
final com.sun.codemodel.JDefinedClass createClass(java.lang.String name)