public abstract class TypeSystemUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TypeSystemUtils.PathValid |
Constructor and Description |
---|
TypeSystemUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
classifyType(Type type)
Classify types into FS type, array type etc.
|
static boolean |
isIdentifier(String s) |
static 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.
|
public static boolean isIdentifier(String s)
public 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.
We distinguish three cases:
PathValid.NEVER
: there is no object of type
on which
path
can ever be defined.PathValid.ALWAYS
: if all intermediate objects are non-null, this
path
will always be defined on any object of type
.PathValid.POSSIBLE
: some objects of type
will have
path
defined, while others may not.public static final int classifyType(Type type)
LowLevelCAS.TYPE_CLASS*
constants, as well as the documentation for
LowLevelCAS.ll_getTypeClass(int)
.type
- The type to classify.Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.