Package org.jdom2.located
Class LocatedText
- java.lang.Object
-
- org.jdom2.Content
-
- org.jdom2.Text
-
- org.jdom2.located.LocatedText
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,Located,NamespaceAware
public class LocatedText extends Text implements Located
An XML character sequence. Provides a modular, parentable method of representing text. Text makes no guarantees about the underlying textual representation of character data, but does expose that data as a Java String.- Author:
- Rolf Lear
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jdom2.Content
Content.CType
-
-
Constructor Summary
Constructors Constructor Description LocatedText(java.lang.String str)This constructor creates a newTextnode, with the supplied string value as it's character content.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumn()Get the column (character on the line).intgetLine()Get the line numbervoidsetColumn(int col)Set the column (character on the line).voidsetLine(int line)Set the line number-
Methods inherited from class org.jdom2.Text
append, append, clone, detach, getParent, getText, getTextNormalize, getTextTrim, getValue, normalizeString, setParent, setText, toString
-
Methods inherited from class org.jdom2.Content
equals, getCType, getDocument, getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced, getParentElement, hashCode
-
-
-
-
Constructor Detail
-
LocatedText
public LocatedText(java.lang.String str)
This constructor creates a newTextnode, with the supplied string value as it's character content.- Parameters:
str- the node's character content.- Throws:
IllegalDataException- ifstrcontains an illegal character such as a vertical tab (as determined byVerifier.checkCharacterData(java.lang.String))
-
-
Method Detail
-
getLine
public int getLine()
Description copied from interface:LocatedGet the line number
-
getColumn
public int getColumn()
Description copied from interface:LocatedGet the column (character on the line).
-
setLine
public void setLine(int line)
Description copied from interface:LocatedSet the line number
-
-