Class Primitives
java.lang.Object
org.apache.uima.caseditor.editor.util.Primitives
The Class Primitives.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
getPrimitive
(FeatureStructure structure, Feature feature) Retrieves the primitive value.static Class
<?> getPrimitiveClass
(TypeSystem ts, Feature f) Retrieves theClass
for 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 boolean
isRestrictedByAllowedValues
(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 theClass
for 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
-