|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.xom.ElementDef
org.eigenbase.xom.GenericDef
public class GenericDef
A 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 Summary | |
|---|---|
GenericDef(String tagName)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GenericDef(String tagName)
| 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 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()
NodeDef
getChildren in interface NodeDefgetChildren in class ElementDef
public void setAttribute(String key,
Object value)
public Object getAttribute(String key)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||