Package org.apache.uima.cas.impl
Class TypeSystemUtils
- java.lang.Object
-
- org.apache.uima.cas.impl.TypeSystemUtils
-
public abstract class TypeSystemUtils extends java.lang.Object
Class comment for TypeSystemUtils.java goes here.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TypeSystemUtils.PathValid
-
Constructor Summary
Constructors Constructor Description TypeSystemUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
classifyType(Type type)
Classify types into FS type, array type etc.static boolean
isIdentifier(java.lang.String s)
static TypeSystemUtils.PathValid
isPathValid(Type type, java.util.List<java.lang.String> path)
Checks if a feature path is valid for a given type.
-
-
-
Method Detail
-
isIdentifier
public static boolean isIdentifier(java.lang.String s)
-
isPathValid
public static final TypeSystemUtils.PathValid isPathValid(Type type, java.util.List<java.lang.String> 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
public static final int classifyType(Type type)
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.
-
-