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 Typepublic int getNumberOfFeatures()
getNumberOfFeatures in interface Typepublic 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)
TypegetFeatureByBaseName in interface TypefeatureName - The short, unqualified name of the feature.null, else.org.apache.uima.cas.Type#getFeature(java.lang.String)public java.lang.String getShortName()
TypegetShortName in interface TypeType.getShortName()public boolean isPrimitive()
TypeisPrimitive in interface Typetrue iff type is a primitive type.Type.isPrimitive()public boolean isFeatureFinal()
TypeisFeatureFinal in interface TypeType.isFeatureFinal()public boolean isInheritanceFinal()
TypeisInheritanceFinal in interface TypeType.isInheritanceFinal()@Deprecated public Feature getFeature(java.lang.String featureName)
public java.util.List<Feature> getFeatures()
TypeFeature.getDomain. Features will be listed in no particular order.getFeatures in interface Typepublic boolean isArray()
Typepublic Type getComponentType()
Typenull.getComponentType in interface TypeCopyright © 2013. All Rights Reserved.