Class Primitives
java.lang.Object
org.apache.uima.caseditor.editor.util.Primitives
The Class Primitives.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetPrimitive(FeatureStructure structure, Feature feature) Retrieves the primitive value.static Class<?>getPrimitiveClass(TypeSystem ts, Feature f) Retrieves theClassfor the current primitive.static Class<?>getPrimitiveClass(TypeSystem ts, Type type) Retrieve the primitive java class for a primitive type.static String[]getRestrictedValues(TypeSystem ts, Type type) Gets the restricted values.static booleanisRestrictedByAllowedValues(TypeSystem ts, Type type) Checks if is restricted by allowed values.
-
Constructor Details
-
Primitives
public Primitives()
-
-
Method Details
-
getPrimitiveClass
Retrieve the primitive java class for a primitive type.- Parameters:
ts- the tstype- the type- Returns:
- the primitive java class
-
getPrimitiveClass
Retrieves theClassfor the current primitive.- Parameters:
ts- the tsf- the f- Returns:
- the class
-
getPrimitive
Retrieves the primitive value.- Parameters:
structure- the structurefeature- the feature- Returns:
- the primitive value as object
-
isRestrictedByAllowedValues
Checks if is restricted by allowed values.- Parameters:
ts- the tstype- the type- Returns:
- true, if is restricted by allowed values
-
getRestrictedValues
Gets the restricted values.- Parameters:
ts- the tstype- the type- Returns:
- the restricted values
-