- java.lang.Object
-
- com.pervasive.datarush.analytics.text.TextElement
-
- Direct Known Subclasses:
TextContainer
public class TextElement extends Object
Definition of a text element.
-
-
Constructor Summary
Constructors Constructor Description TextElement()
Default constructor for an Unknown element.TextElement(TextElementType type)
Constructor for a specified element.TextElement(TextElementType type, String value)
Constructor for a specified element type with an associated value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
TextElementType
getType()
Get the type of this text element.String
getValue()
Get the value of this text element or null if unspecified.int
hashCode()
-
-
-
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 elementvalue
- 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
-
-