|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.xom.ElementDef org.eigenbase.xom.WrapperElementDef
public class WrapperElementDef
WrapperElementDef
is an ElementDef
which retains the
underlying XML DOMWrapper
. It is used when there is no specific
class for this tag.
Field Summary | |
---|---|
(package private) DOMWrapper |
_def
|
(package private) Class |
enclosure
|
(package private) String |
prefix
|
Constructor Summary | |
---|---|
WrapperElementDef(DOMWrapper def,
Class enclosure,
String prefix)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
DOMWrapper _def
Class enclosure
String prefix
Constructor Detail |
---|
public WrapperElementDef(DOMWrapper def, Class enclosure, String prefix)
Method Detail |
---|
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.FullDefinition.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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |