public class GenericDef extends ElementDef
GenericDef is a ElementDef whose attributes and
children are stored in collections, not generated members. It is convenient
for building XML documents, but is not strongly typed.| Constructor and Description |
|---|
GenericDef(String tagName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(NodeDef element) |
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.
|
Object |
getAttribute(String key) |
NodeDef[] |
getChildren()
Returns the children of this node.
|
String |
getName()
Returns the tag name of this element, or null for TEXT elements.
|
int |
getType()
Returns the type of this element.
|
void |
setAttribute(String key,
Object value) |
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, getWrapper, hashCode, toCompactXML, toString, toXML, verifyEqualpublic GenericDef(String tagName)
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()
getName in interface NodeDefgetName in class ElementDefpublic void addChild(NodeDef element)
addChild in class ElementDefpublic NodeDef[] getChildren()
NodeDefgetChildren in interface NodeDefgetChildren in class ElementDefCopyright © 2012–2022 Julian Hyde. All rights reserved.