Package org.apache.uima.util
Class TypeSystemUtil
java.lang.Object
org.apache.uima.util.TypeSystemUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureDescriptionfeature2FeatureDescription(Feature aFeature) Convert aFeatureto an equivalentFeatureDescription.static String[]getAllowedValuesForType(Type aType, TypeSystem aTypeSystem) Gets the allowed values for a string subtype.static TypeDescriptiontype2TypeDescription(Type aType, TypeSystem aTypeSystem) Convert aTypeto an equivalentTypeDescription.static TypeSystemDescriptiontypeSystem2TypeSystemDescription(TypeSystem aTypeSystem) Convert aTypeSystemto an equivalentTypeSystemDescription.
-
Constructor Details
-
TypeSystemUtil
public TypeSystemUtil()
-
-
Method Details
-
typeSystem2TypeSystemDescription
Convert aTypeSystemto an equivalentTypeSystemDescription.- Parameters:
aTypeSystem- type system object to convert- Returns:
- a TypeSystemDescription that is equivalent to
aTypeSystem
-
type2TypeDescription
Convert aTypeto an equivalentTypeDescription.- Parameters:
aType- type object to convertaTypeSystem- the TypeSystem that containsaType- Returns:
- a TypeDescription that is equivalent to
aType
-
feature2FeatureDescription
Convert aFeatureto an equivalentFeatureDescription.- Parameters:
aFeature- feature object to convert- Returns:
- a FeatureDescription that is equivalent to
aFeature
-
getAllowedValuesForType
Gets the allowed values for a string subtype.- Parameters:
aType- the type, which must be a subtype of uima.cas.StringaTypeSystem- the type system to use- Returns:
- array of allowed values for
aTypeTODO - this should be a method on Type.
-