org.apache.uima.util
public class TypeSystemUtil extends java.lang.Object
Constructor and Description |
---|
TypeSystemUtil() |
Modifier and Type | Method and Description |
---|---|
static FeatureDescription |
feature2FeatureDescription(Feature aFeature)
Convert a
Feature to an equivalent FeatureDescription . |
static java.lang.String[] |
getAllowedValuesForType(Type aType,
TypeSystem aTypeSystem)
Gets the allowed values for a string subtype.
|
static TypeDescription |
type2TypeDescription(Type aType,
TypeSystem aTypeSystem)
Convert a
Type to an equivalent TypeDescription . |
static TypeSystemDescription |
typeSystem2TypeSystemDescription(TypeSystem aTypeSystem)
Convert a
TypeSystem to an equivalent TypeSystemDescription . |
public static TypeSystemDescription typeSystem2TypeSystemDescription(TypeSystem aTypeSystem)
TypeSystem
to an equivalent TypeSystemDescription
.aTypeSystem
- type system object to convertaTypeSystem
public static TypeDescription type2TypeDescription(Type aType, TypeSystem aTypeSystem)
Type
to an equivalent TypeDescription
.aType
- type object to convertaTypeSystem
- the TypeSystem that contains aType
aType
public static FeatureDescription feature2FeatureDescription(Feature aFeature)
Feature
to an equivalent FeatureDescription
.aFeature
- feature object to convertaFeature
public static java.lang.String[] getAllowedValuesForType(Type aType, TypeSystem aTypeSystem)
aType
- the type, which must be a subtype of uima.cas.StringaType
TODO - this should be a method on
Type.Copyright © 2014. All Rights Reserved.