public class TypeImpl extends java.lang.Object implements Type, java.lang.Comparable<TypeImpl>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TypeImpl t)
Note: you can only compare types from the same type system.
|
java.util.Vector<Feature> |
getAppropriateFeatures()
Deprecated.
|
int |
getCode()
Return the internal integer code for this type.
|
Type |
getComponentType()
For array types, returns the component type of the array type.
|
Feature |
getFeature(java.lang.String featureName)
Deprecated.
|
Feature |
getFeatureByBaseName(java.lang.String featureName)
Retrieve a feature for this type.
|
java.util.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).
|
java.lang.String |
getName()
Get the name of the type.
|
int |
getNumberOfFeatures()
Get the number of features for which this type defines the range.
|
java.lang.String |
getShortName()
Get the unqualified, short name of this type.
|
Type |
getSuperType()
Get the super type.
|
TypeSystem |
getTypeSystem()
Get the type hierarchy that this type belongs to.
|
boolean |
isAnnotationType()
Check if this is an annotation 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.
|
java.lang.String |
toString() |
public java.lang.String getName()
public Type getSuperType()
public java.lang.String toString()
toString
in class java.lang.Object
@Deprecated public java.util.Vector<Feature> getAppropriateFeatures()
getAppropriateFeatures
in interface Type
public int getNumberOfFeatures()
getNumberOfFeatures
in interface Type
public boolean isAnnotationType()
true
, if this
is an annotation type; false
,
else.public TypeSystem getTypeSystem()
public int getCode()
>=0
.public int compareTo(TypeImpl t)
compareTo
in interface java.lang.Comparable<TypeImpl>
public Feature getFeatureByBaseName(java.lang.String featureName)
Type
getFeatureByBaseName
in interface Type
featureName
- The short, unqualified name of the feature.null
, else.org.apache.uima.cas.Type#getFeature(java.lang.String)
public java.lang.String getShortName()
Type
getShortName
in interface Type
Type.getShortName()
public boolean isPrimitive()
Type
isPrimitive
in interface Type
true
iff type is a primitive type.Type.isPrimitive()
public boolean isFeatureFinal()
Type
isFeatureFinal
in interface Type
Type.isFeatureFinal()
public boolean isInheritanceFinal()
Type
isInheritanceFinal
in interface Type
Type.isInheritanceFinal()
@Deprecated public Feature getFeature(java.lang.String featureName)
public java.util.List<Feature> getFeatures()
Type
Feature.getDomain
. Features will be listed in no particular order.getFeatures
in interface Type
public boolean isArray()
Type
public Type getComponentType()
Type
null
.getComponentType
in interface Type
Copyright © 2012. All Rights Reserved.