public class LocatedCDATA extends CDATA implements Located
Text object, but output behavior is different.
CDATA makes no guarantees about the underlying textual representation of
character data, but does expose that data as a Java String.Content.CType| Constructor and Description |
|---|
LocatedCDATA(java.lang.String str)
This constructor creates a new
LocatedCDATA node, with the
supplied string value as its character content. |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumn()
Get the column (character on the line).
|
int |
getLine()
Get the line number
|
void |
setColumn(int col)
Set the column (character on the line).
|
void |
setLine(int line)
Set the line number
|
append, append, clone, detach, setParent, setText, toStringgetParent, getText, getTextNormalize, getTextTrim, getValue, normalizeStringequals, getCType, getDocument, getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced, getParentElement, hashCodepublic LocatedCDATA(java.lang.String str)
LocatedCDATA node, with the
supplied string value as its character content.str - the node's character content.IllegalDataException - if str contains an
illegal character such as a vertical tab (as determined
by Verifier.checkCharacterData(java.lang.String))public int getLine()
Locatedpublic int getColumn()
Locatedpublic void setLine(int line)
LocatedCopyright © 2021 Jason Hunter, Brett McLaughlin. All Rights Reserved.