Package org.apache.uima.cas_data.impl
Class PrimitiveValueImpl
java.lang.Object
org.apache.uima.cas_data.impl.PrimitiveValueImpl
- All Implemented Interfaces:
Serializable
,FeatureValue
,PrimitiveValue
- Direct Known Subclasses:
VinciPrimitiveValue
- See Also:
-
Constructor Summary
ConstructorDescriptionPrimitiveValueImpl
(float aValue) PrimitiveValueImpl
(int aValue) PrimitiveValueImpl
(String aValue) -
Method Summary
-
Constructor Details
-
PrimitiveValueImpl
-
PrimitiveValueImpl
public PrimitiveValueImpl(int aValue) -
PrimitiveValueImpl
public PrimitiveValueImpl(float aValue)
-
-
Method Details
-
toString
Description copied from interface:PrimitiveValue
Gets this value as a string.- Specified by:
toString
in interfacePrimitiveValue
- Overrides:
toString
in classObject
- 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
Description copied from interface:FeatureValue
Gets the feature value as a Java object.- Specified by:
get
in interfaceFeatureValue
- Returns:
- the feature value.
-