Package org.apache.uima.cas_data.impl
Class PrimitiveValueImpl
- java.lang.Object
-
- org.apache.uima.cas_data.impl.PrimitiveValueImpl
-
- All Implemented Interfaces:
java.io.Serializable
,FeatureValue
,PrimitiveValue
- Direct Known Subclasses:
VinciPrimitiveValue
public class PrimitiveValueImpl extends java.lang.Object implements PrimitiveValue
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object
aValueObject
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description PrimitiveValueImpl(float aValue)
PrimitiveValueImpl(int aValue)
PrimitiveValueImpl(java.lang.String aValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get()
Gets the feature value as a Java object.float
toFloat()
Gets this value as a float.int
toInt()
Gets this value as an integer.java.lang.String
toString()
Gets this value as a string.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
aValueObject
private java.lang.Object aValueObject
-
-
Method Detail
-
toString
public java.lang.String toString()
Description copied from interface:PrimitiveValue
Gets this value as a string.- Specified by:
toString
in interfacePrimitiveValue
- Overrides:
toString
in classjava.lang.Object
- Returns:
- string value
-
toInt
public int toInt()
Description copied from interface:PrimitiveValue
Gets this value as an integer.- Specified by:
toInt
in interfacePrimitiveValue
- Returns:
- integer value, 0 if a non-integer
-
toFloat
public float toFloat()
Description copied from interface:PrimitiveValue
Gets this value as a float.- Specified by:
toFloat
in interfacePrimitiveValue
- Returns:
- float value, 0 if a non-number.
-
get
public java.lang.Object get()
Description copied from interface:FeatureValue
Gets the feature value as a Java object.- Specified by:
get
in interfaceFeatureValue
- Returns:
- the feature value.
-
-