public class WrapperElementDef extends ElementDef
WrapperElementDef
is an ElementDef
which retains the
underlying XML DOMWrapper
. It is used when there is no specific
class for this tag.Constructor and Description |
---|
WrapperElementDef(DOMWrapper def,
Class enclosure,
String prefix) |
Modifier and Type | Method and Description |
---|---|
void |
display(PrintWriter out,
int indent)
Outputs this node to any PrintWriter,
in a formatted fashion with automatic indenting.
|
void |
displayXML(XMLOutput out,
int indent)
Outputs this element definition in XML to any XMLOutput.
|
NodeDef[] |
getChildren()
Returns the children of this node.
|
String |
getName()
Returns the name of this node's tag.
|
int |
getType()
Returns the type of this element.
|
DOMWrapper |
getWrapper()
Retrieves the
DOMWrapper which was used to create this
node. |
addChild, addChildren, clone, constructElement, constructElement, deepCopy, diff, displayAttribute, displayAttributeDiff, displayDiff, displayElement, displayElementArray, displayElementArrayDiff, displayElementDiff, displayIndent, displayString, displayStringArray, displayStringArrayDiff, displayStringDiff, displayXML, displayXMLElement, displayXMLElementArray, displayXMLString, displayXMLStringArray, equals, getElementChildren, getElementClass, getLocation, getMixedChildren_new, getMixedChildren, getText, hashCode, toCompactXML, toString, toXML, verifyEqual
public WrapperElementDef(DOMWrapper def, Class enclosure, String prefix)
public void display(PrintWriter out, int indent)
NodeDef
out
- the PrintWriter to which to write this NodeDef.indent
- the indentation level for the printout.public void displayXML(XMLOutput out, int indent)
NodeDef
displayXML
in interface NodeDef
displayXML
in class ElementDef
out
- the XMLOutput class to display the XMLpublic int getType()
NodeDef
DOMWrapper.getType()
.getType
in interface NodeDef
getType
in class ElementDef
public String getName()
NodeDef
getName
in interface NodeDef
getName
in class ElementDef
public NodeDef[] getChildren()
NodeDef
getChildren
in interface NodeDef
getChildren
in class ElementDef
public DOMWrapper getWrapper()
NodeDef
DOMWrapper
which was used to create this
node. Only works if this nodes's MetaDef.Element.keepDef
was
true (or, if it is not set, if the default
MetaDef.Model.defaultKeepDef
is true);
otherwise, returns null
.getWrapper
in interface NodeDef
getWrapper
in class ElementDef
Copyright © 2012 Julian Hyde. All Rights Reserved.