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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPrimitiveValueImpl(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:PrimitiveValueGets this value as a string.- Specified by:
toStringin interfacePrimitiveValue- Overrides:
toStringin classObject- Returns:
- string value
-
toInt
public int toInt()Description copied from interface:PrimitiveValueGets this value as an integer.- Specified by:
toIntin interfacePrimitiveValue- Returns:
- integer value, 0 if a non-integer
-
toFloat
public float toFloat()Description copied from interface:PrimitiveValueGets this value as a float.- Specified by:
toFloatin interfacePrimitiveValue- Returns:
- float value, 0 if a non-number.
-
get
Description copied from interface:FeatureValueGets the feature value as a Java object.- Specified by:
getin interfaceFeatureValue- Returns:
- the feature value.
-