Package org.eigenbase.xom
Class WrapperElementDef
java.lang.Object
org.eigenbase.xom.ElementDef
org.eigenbase.xom.WrapperElementDef
- All Implemented Interfaces:
Serializable
,Cloneable
,NodeDef
WrapperElementDef
is an ElementDef
which retains the
underlying XML DOMWrapper
. It is used when there is no specific
class for this tag.- Since:
- 31 October, 2001
- Version:
- $Id: //open/util/resgen/src/org/eigenbase/xom/WrapperElementDef.java#3 $
- Author:
- jhyde
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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[]
Returns the children of this node.getName()
Returns the name of this node's tag.int
getType()
Returns the type of this element.Retrieves theDOMWrapper
which was used to create this node.Methods inherited from class org.eigenbase.xom.ElementDef
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, getMixedChildren_new, getText, hashCode, toCompactXML, toString, toXML, verifyEqual
-
Field Details
-
_def
DOMWrapper _def -
enclosure
Class enclosure -
prefix
String prefix
-
-
Constructor Details
-
WrapperElementDef
-
-
Method Details
-
display
Description copied from interface:NodeDef
Outputs this node to any PrintWriter, in a formatted fashion with automatic indenting.- Parameters:
out
- the PrintWriter to which to write this NodeDef.indent
- the indentation level for the printout.
-
displayXML
Description copied from interface:NodeDef
Outputs this element definition in XML to any XMLOutput.- Specified by:
displayXML
in interfaceNodeDef
- Overrides:
displayXML
in classElementDef
- Parameters:
out
- the XMLOutput class to display the XML
-
getType
public int getType()Description copied from interface:NodeDef
Returns the type of this element. Values are as forDOMWrapper.getType()
.- Specified by:
getType
in interfaceNodeDef
- Overrides:
getType
in classElementDef
-
getName
Description copied from interface:NodeDef
Returns the name of this node's tag.- Specified by:
getName
in interfaceNodeDef
- Overrides:
getName
in classElementDef
-
getChildren
Description copied from interface:NodeDef
Returns the children of this node.- Specified by:
getChildren
in interfaceNodeDef
- Overrides:
getChildren
in classElementDef
-
getWrapper
Description copied from interface:NodeDef
Retrieves theDOMWrapper
which was used to create this node. Only works if this nodes'sMetaDef.Element.keepDef
was true (or, if it is not set, if the defaultMetaDef.Model.defaultKeepDef
is true); otherwise, returnsnull
.- Specified by:
getWrapper
in interfaceNodeDef
- Overrides:
getWrapper
in classElementDef
- Returns:
- wrapper underlying this node
-