|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.xom.TextDef
public class TextDef
A TextDef represents piece of textual data in an XML document.
Free text (such as Some text) is represented by an actual
TextDef; comments (such as <-- a comment -->)
by derived class CommentDef; and CDATA sections (such as
<![CDATA[Some text]]>) by derived class CdataDef.
![]() |
![]() |
| Field Summary | |
|---|---|
(package private) boolean |
asIs
Whether to print the data as is -- never quote as a CDATA section. |
String |
s
|
| Constructor Summary | |
|---|---|
TextDef()
|
|
TextDef(DOMWrapper _def)
|
|
TextDef(String s)
|
|
TextDef(String s,
boolean asIs)
|
|
TextDef(String s,
boolean asIs,
Location location)
|
|
| Method Summary | |
|---|---|
void |
display(PrintWriter pw,
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. |
Location |
getLocation()
Returns the location of this element in its document. |
String |
getName()
Returns the name of this node's tag. |
String |
getText()
Returns the text inside this node. |
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String s
boolean asIs
| Constructor Detail |
|---|
public TextDef()
public TextDef(String s)
public TextDef(String s,
boolean asIs)
public TextDef(String s,
boolean asIs,
Location location)
public TextDef(DOMWrapper _def)
throws XOMException
XOMException| Method Detail |
|---|
public String getName()
NodeDef
getName in interface NodeDefpublic String getText()
NodeDef
getText in interface NodeDefpublic NodeDef[] getChildren()
NodeDef
getChildren in interface NodeDefpublic DOMWrapper getWrapper()
NodeDefDOMWrapper 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 NodeDefpublic int getType()
NodeDefDOMWrapper.getType().
getType in interface NodeDef
public void display(PrintWriter pw,
int indent)
NodeDef
display in interface NodeDefpw - 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 NodeDefout - the XMLOutput class to display the XMLpublic Location getLocation()
NodeDef
getLocation in interface NodeDef
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||