public class ExtContent extends java.lang.Object implements IExtChild
IExtChild object of
type ExtChildType.TEXT or ExtChildType.CDATA.| Constructor and Description |
|---|
ExtContent(ExtContent original)
Copy constructor.
|
ExtContent(java.lang.String text)
Creates a new
ExtContent object. |
ExtContent(java.lang.String text,
boolean cdata)
Creates a new
ExtContent object in CDATA mode or not. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCData()
Indicates if the content is to be represented as CDATA.
|
java.lang.String |
getText()
Gets the content.
|
ExtChildType |
getType()
Gets the type of child this object is (one of the
ExtChildType values). |
void |
setCData(boolean cdata)
Sets the flag indicating if the content is to be represented as CDATA.
|
void |
setText(java.lang.String text)
Sets the content.
|
public ExtContent(ExtContent original)
original - the original object to duplicate.public ExtContent(java.lang.String text)
ExtContent object.text - the text of the content.public ExtContent(java.lang.String text,
boolean cdata)
ExtContent object in CDATA mode or not.text - the text of the content.cdata - true if the content should be written in a CDATA section, false otherwise.public ExtChildType getType()
IExtChildExtChildType values).public boolean getCData()
public void setCData(boolean cdata)
cdata - true to represent the content as CDATA.public java.lang.String getText()
public void setText(java.lang.String text)
text - the new content.