Class TextElement

  • Direct Known Subclasses:
    TextContainer

    public class TextElement
    extends Object
    Definition of a text element.
    • Constructor Detail

      • TextElement

        public TextElement()
        Default constructor for an Unknown element.
      • TextElement

        public TextElement​(TextElementType type)
        Constructor for a specified element.
        Parameters:
        type - the TextElementType of the element
      • TextElement

        public TextElement​(TextElementType type,
                           String value)
        Constructor for a specified element type with an associated value.
        Parameters:
        type - the TextElementType of the element
        value - the string value of the element
    • Method Detail

      • getType

        public TextElementType getType()
        Get the type of this text element.
        Returns:
        the TextElementType of this element
      • getValue

        public String getValue()
        Get the value of this text element or null if unspecified.
        Returns:
        the value of this text element
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object