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
Elements 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, sizeaddAll, containsAll, retainAll, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitfinal TxwOptions opts
final com.sun.codemodel.JCodeModel codeModel
private final java.util.Set<Element> rootElements
Elements 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)