|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.uima.util.TypeSystemUtil
public class TypeSystemUtil
Constructor Summary | |
---|---|
TypeSystemUtil()
|
Method Summary | |
---|---|
static FeatureDescription |
feature2FeatureDescription(Feature aFeature)
Convert a Feature to an equivalent FeatureDescription . |
static 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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeSystemUtil()
Method Detail |
---|
public static TypeSystemDescription typeSystem2TypeSystemDescription(TypeSystem aTypeSystem)
TypeSystem
to an equivalent TypeSystemDescription
.
aTypeSystem
- type system object to convert
aTypeSystem
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 convert
aFeature
public static String[] getAllowedValuesForType(Type aType, TypeSystem aTypeSystem)
aType
- the type, which must be a subtype of uima.cas.String
aType
TODO - this should be a method on
Type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |