Class Primitives

java.lang.Object
org.apache.uima.caseditor.editor.util.Primitives

public class Primitives extends Object
The Class Primitives.
  • Constructor Details

    • Primitives

      public Primitives()
  • Method Details

    • getPrimitiveClass

      public static Class<?> getPrimitiveClass(TypeSystem ts, Type type)
      Retrieve the primitive java class for a primitive type.
      Parameters:
      ts - the ts
      type - the type
      Returns:
      the primitive java class
    • getPrimitiveClass

      public static Class<?> getPrimitiveClass(TypeSystem ts, Feature f)
      Retrieves the Class for the current primitive.
      Parameters:
      ts - the ts
      f - the f
      Returns:
      the class
    • getPrimitive

      public static Object getPrimitive(FeatureStructure structure, Feature feature)
      Retrieves the primitive value.
      Parameters:
      structure - the structure
      feature - the feature
      Returns:
      the primitive value as object
    • isRestrictedByAllowedValues

      public static boolean isRestrictedByAllowedValues(TypeSystem ts, Type type)
      Checks if is restricted by allowed values.
      Parameters:
      ts - the ts
      type - the type
      Returns:
      true, if is restricted by allowed values
    • getRestrictedValues

      public static String[] getRestrictedValues(TypeSystem ts, Type type)
      Gets the restricted values.
      Parameters:
      ts - the ts
      type - the type
      Returns:
      the restricted values