Package org.apache.uima.cas.impl
Class TypeSystemUtils
java.lang.Object
org.apache.uima.cas.impl.TypeSystemUtils
Class comment for TypeSystemUtils.java goes here.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
(package private) static class
(package private) static class
static enum
(package private) static class
(package private) static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final int
classifyType
(Type type) Classify types into FS type, array type etc.private static final void
getFeatureDefiningSubtypes
(Type type, String fName, List<Type> types) static boolean
(package private) static boolean
isIdentifierChar
(char c) (package private) static boolean
isIdentifierStart
(char c) (package private) static boolean
static final TypeSystemUtils.PathValid
isPathValid
(Type type, List<String> path) Checks if a feature path is valid for a given type.private static final TypeSystemUtils.PathValid
isPathValid
(Type type, Stack<String> path, TypeSystemUtils.PathValid status) (package private) static boolean
isTypeName
(String name) Check ifname
is a possible type name.(package private) static boolean
isTypeNameSpaceName
(String name)
-
Field Details
-
NAMESPACE_SEPARATOR_AS_STRING
- See Also:
-
-
Constructor Details
-
TypeSystemUtils
public TypeSystemUtils()
-
-
Method Details
-
isIdentifier
-
isNonQualifiedName
-
isIdentifierStart
static boolean isIdentifierStart(char c) -
isIdentifierChar
static boolean isIdentifierChar(char c) -
isTypeName
Check ifname
is a possible type name. Does not check if this type actually exists!- Parameters:
name
- The name to check.- Returns:
true
iffname
is a possible type name.
-
isTypeNameSpaceName
-
isPathValid
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.
-
isPathValid
private static final TypeSystemUtils.PathValid isPathValid(Type type, Stack<String> path, TypeSystemUtils.PathValid status) -
getFeatureDefiningSubtypes
-
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.
-