|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.cas.impl.TypeImpl
public class TypeImpl
The implementation of types in the type system.
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String getName()
getName in interface Typepublic 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)
Type
getFeatureByBaseName 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()
Type
getShortName in interface TypeType.getShortName()public boolean isPrimitive()
Type
isPrimitive in interface Typetrue iff type is a primitive type.Type.isPrimitive()public boolean isFeatureFinal()
Type
isFeatureFinal in interface TypeType.isFeatureFinal()public boolean isInheritanceFinal()
Type
isInheritanceFinal 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()
Type
isArray in interface Typetrue iff the type is an array type.public Type getComponentType()
Typenull.
getComponentType in interface Type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||