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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final int
classifyType
(Type type) Classify types into FS type, array type etc.static boolean
static final TypeSystemUtils.PathValid
isPathValid
(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 oftype
on whichpath
can ever be defined.PathValid.ALWAYS
: if all intermediate objects are non-null, thispath
will always be defined on any object oftype
.PathValid.POSSIBLE
: some objects oftype
will havepath
defined, 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.
-