public abstract class A_TextElement extends DomElement
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
long serialVersionUID
|
private java.lang.String |
strContents |
Constructor and Description |
---|
A_TextElement(java.lang.String strContent) |
Modifier and Type | Method and Description |
---|---|
boolean |
addChild(DomElement domChild)
Do nothing.
|
void |
addChild(int intIdx,
DomElement domChild)
Do nothing.
|
protected java.lang.String |
getContents()
Gets the element contents.
|
java.lang.String |
setAttribute(java.lang.String strKey,
java.lang.String strValue)
Do nothing.
|
protected void |
setContents(java.lang.String strContents)
Sets the element contents.
|
java.lang.String |
toString(int intPrefixWhiteSpaceCount,
boolean blFirstLinePrefixFlag,
java.lang.String strWhiteSpaceTextUnit,
char chCasesFlag,
java.lang.String[] str1dPairTagNames,
java.lang.String[] str1d_TagNames)
Returns a string representation of the object.
|
abstract java.lang.String |
toTightString()
Returns a tight string representation of the object.
|
java.lang.String |
toTightString(char chCasesFlag,
java.lang.String[] str1dPairTagNames,
java.lang.String[] str1d_TagNames)
Returns a tight string representation of the object.
|
addChildren, addChildren, addChildren, addChildren, escapeForDocument, getAttribute, getAttributes, getAttributes, getAttributes, getChild, getChildren, getChildren, getTagName, isForceTight, removeAttribute, removeAttributes, removeAttributes, removeAttributes, removeChild, removeChild, removeChildren, removeChildren, removeChildren, removeChildren, resetAttribute, resetAttributes, resetChild, resetChild, resetChildren, resetChildren, resetChildren, resetChildren, setAttribute, setAttributes, setForceTight, sortChildren, toString, toString, toString, toString, toString, toString, toString, toString
private static final long serialVersionUID
private java.lang.String strContents
public A_TextElement(java.lang.String strContent) throws java.lang.NullPointerException
strContent
- - Content string.java.lang.NullPointerException
- while the given content is null.protected java.lang.String getContents()
protected void setContents(java.lang.String strContents)
strContents
- - The contents.public boolean addChild(DomElement domChild)
addChild
in class DomElement
domChild
- - The child node to be appended to the child node list in this
node.DomElement.addChild(tfw.base.dom.model.DomElement)
public void addChild(int intIdx, DomElement domChild)
addChild
in class DomElement
intIdx
- - The index at which the specified child node is to be
inserted.domChild
- - The child node to be inserted to the child node list in this
node.DomElement.addChild(int,
tfw.base.dom.model.DomElement)
public java.lang.String setAttribute(java.lang.String strKey, java.lang.String strValue)
setAttribute
in class DomElement
strKey
- - The key with which the specified value is to be associated.strValue
- - The value to be associated with the specified key.DomElement.setAttribute(java.lang.String,
java.lang.String)
public java.lang.String toString(int intPrefixWhiteSpaceCount, boolean blFirstLinePrefixFlag, java.lang.String strWhiteSpaceTextUnit, char chCasesFlag, java.lang.String[] str1dPairTagNames, java.lang.String[] str1d_TagNames)
DomElement
toString
in class DomElement
intPrefixWhiteSpaceCount
- - Count of prefix white space; but
meaningless to this class, could use
any value.blFirstLinePrefixFlag
- - A boolean flag that indicates use or NOT use a prefix to the
first line of the text; but meaningless to
this class, could use any value.strWhiteSpaceTextUnit
- - Text unit of white space; but meaningless
to this class, could use any value.chCasesFlag
- - Character cases of the tag names and attribute names; but
meaningless to this class, could use
any value.str1dPairTagNames
- - The names of the tags that must appear in pairs, even if
they contain no child elements; but
meaningless to this class, could use
any value.str1d_TagNames
- - The names of the tags that must have a blank character
before their "/>", if they contain no child elements; but
meaningless to this class, could use
any value.DomElement.toString(int, boolean,
java.lang.String, char, java.lang.String[], java.lang.String[])
public java.lang.String toTightString(char chCasesFlag, java.lang.String[] str1dPairTagNames, java.lang.String[] str1d_TagNames)
DomElement
toTightString
in class DomElement
chCasesFlag
- - Character cases of the tag names and attribute names; but
meaningless to this class, could use
any value.str1dPairTagNames
- - The names of the tags that must appear in pairs, even if
they contain no child elements; but
meaningless to this class, could use
any value.str1d_TagNames
- - The names of the tags that must have a blank character
before their "/>", if they contain no child elements; but
meaningless to this class, could use
any value.tfw.base.dom.model.DomElement#toString(char, java.lang.String[],
java.lang.String[])
public abstract java.lang.String toTightString()
DomElement
toTightString
in class DomElement
DomElement.toTightString()