Class LocatedText

java.lang.Object
org.jdom2.Content
org.jdom2.Text
org.jdom2.located.LocatedText
All Implemented Interfaces:
Serializable, 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:
  • Constructor Details

  • Method Details

    • getLine

      public int getLine()
      Description copied from interface: Located
      Get the line number
      Specified by:
      getLine in interface Located
      Returns:
      the line number
    • getColumn

      public int getColumn()
      Description copied from interface: Located
      Get the column (character on the line).
      Specified by:
      getColumn in interface Located
      Returns:
      the column
    • setLine

      public void setLine(int line)
      Description copied from interface: Located
      Set the line number
      Specified by:
      setLine in interface Located
      Parameters:
      line - the line.
    • setColumn

      public void setColumn(int col)
      Description copied from interface: Located
      Set the column (character on the line).
      Specified by:
      setColumn in interface Located
      Parameters:
      col - The column