public interface Type
Type names are Java strings that look like Java class names. For example,
the built-in annotation type is called uima.tcas.Annotation
. The whole string is
called the (fully) qualified type name. The part after the last period is called the short or
base name. The rest of the name is the name space of the type. This part can be empty, in which
case the qualified and the base name are identical.
Type system identifiers in general have the following syntax: they are non-empty strings whose first character is a letter (Unicode letter), followed by an arbitrary sequence of letters, digits and underscores. No other characters are legal parts of identifiers. A type name is then a non-empty sequence of identifiers separated by periods. See also Feature names.
Modifier and Type | Method and Description |
---|---|
Vector<Feature> |
getAppropriateFeatures()
Deprecated.
Use
getFeatures() instead. |
Type |
getComponentType()
For array types, returns the component type of the array type.
|
Feature |
getFeatureByBaseName(String featureName)
Retrieve a feature for this type.
|
List<Feature> |
getFeatures()
Get a vector of the features for which this type is a subtype of the features' domain (i.e.,
inherited features are also returned).
|
String |
getName()
Get the fully qualified name of the type.
|
int |
getNumberOfFeatures()
Get the number of features for which this type defines the domain.
|
String |
getShortName()
Get the unqualified, short name of this type.
|
boolean |
isArray()
Check if the type is an array type.
|
boolean |
isFeatureFinal()
Check if type is feature final, i.e., if no more new features may be defined for it.
|
boolean |
isInheritanceFinal()
Check if type is inheritance final, i.e., if new types can be derived from it.
|
boolean |
isPrimitive()
Check if the type is one of the primitive types.
|
String getName()
String getShortName()
@Deprecated Vector<Feature> getAppropriateFeatures()
getFeatures()
instead.Feature.getDomain
. Features will be listed in no particular order.List<Feature> getFeatures()
Feature.getDomain
. Features will be listed in no particular order.int getNumberOfFeatures()
Feature getFeatureByBaseName(String featureName)
featureName
- The short, unqualified name of the feature.null
, else.boolean isFeatureFinal()
boolean isInheritanceFinal()
boolean isPrimitive()
true
iff type is a primitive type.boolean isArray()
true
iff the type is an array type.Type getComponentType()
null
.Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.