Package org.apache.uima.cas.impl
Class TypeSystemUtils
java.lang.Object
org.apache.uima.cas.impl.TypeSystemUtils
Type Utilities - all static, so class is abstract to prevent creation Used by Feature Path
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final intclassifyType(Type type) Classify types into FS type, array type etc.static booleanstatic final TypeSystemUtils.PathValidisPathValid(Type type, List<String> path) Given a starting Type and a list of features representing a feature path, checks if a feature path is valid for a given type.
-
Constructor Details
-
TypeSystemUtils
public TypeSystemUtils()
-
-
Method Details
-
isIdentifier
-
isPathValid
Given a starting Type and a list of features representing a feature path, checks if a feature path is valid for a given type.
We distinguish three cases:
PathValid.NEVER: there is no object oftypeon whichpathcan ever be defined.PathValid.ALWAYS: if all intermediate objects are non-null, thispathwill always be defined on any object oftype.PathValid.POSSIBLE: some objects oftypewill havepathdefined, while others may not.
-
classifyType
Classify types into FS type, array type etc. For the full list of return types, see theLowLevelCAS.TYPE_CLASS*constants, as well as the documentation forLowLevelCAS.ll_getTypeClass(int).- Parameters:
type- The type to classify.- Returns:
- An integer encoding the the type class. See above.
-