public class TypeSystemUtil extends Object
| Constructor and Description | 
|---|
| TypeSystemUtil() | 
| Modifier and Type | Method and Description | 
|---|---|
| static FeatureDescription | feature2FeatureDescription(Feature aFeature)Convert a  Featureto an equivalentFeatureDescription. | 
| static String[] | getAllowedValuesForType(Type aType,
                       TypeSystem aTypeSystem)Gets the allowed values for a string subtype. | 
| static TypeDescription | type2TypeDescription(Type aType,
                    TypeSystem aTypeSystem)Convert a  Typeto an equivalentTypeDescription. | 
| static TypeSystemDescription | typeSystem2TypeSystemDescription(TypeSystem aTypeSystem)Convert a  TypeSystemto an equivalentTypeSystemDescription. | 
public static TypeSystemDescription typeSystem2TypeSystemDescription(TypeSystem aTypeSystem)
TypeSystem to an equivalent TypeSystemDescription.aTypeSystem - type system object to convertaTypeSystempublic static TypeDescription type2TypeDescription(Type aType, TypeSystem aTypeSystem)
Type to an equivalent TypeDescription.aType - type object to convertaTypeSystem - the TypeSystem that contains aTypeaTypepublic static FeatureDescription feature2FeatureDescription(Feature aFeature)
Feature to an equivalent FeatureDescription.aFeature - feature object to convertaFeaturepublic static String[] getAllowedValuesForType(Type aType, TypeSystem aTypeSystem)
aType - the type, which must be a subtype of uima.cas.StringaTypeSystem - the type system to useaType TODO - this should be a method on Type.Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.