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, verifyEqualpublic WrapperElementDef(DOMWrapper def, Class enclosure, String prefix)
public void display(PrintWriter out, int indent)
NodeDefout - the PrintWriter to which to write this NodeDef.indent - the indentation level for the printout.public void displayXML(XMLOutput out, int indent)
NodeDefdisplayXML in interface NodeDefdisplayXML in class ElementDefout - the XMLOutput class to display the XMLpublic int getType()
NodeDefDOMWrapper.getType().getType in interface NodeDefgetType in class ElementDefpublic String getName()
NodeDefgetName in interface NodeDefgetName in class ElementDefpublic NodeDef[] getChildren()
NodeDefgetChildren in interface NodeDefgetChildren in class ElementDefpublic DOMWrapper getWrapper()
NodeDefDOMWrapper 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 NodeDefgetWrapper in class ElementDefCopyright © 2012–2020 Julian Hyde. All rights reserved.