| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TypeSystem
The interface to the type system. Used to access information about existing
 types and features using
 their String identifiers. This is a pure access interface. Types and features are defined using
 Component Descriptors, written in XML.
 
 
 Get the type system from a CAS object with getTypeSystem().
 
 
 There are a few methods to list the existing types in a type system. Information about which
 feature is appropriate for which type is available through the Type and
 Feature classes.
| Field Summary | |
|---|---|
static char | 
FEATURE_SEPARATOR
This is the character that separates a type name from a feature name.  | 
static char | 
NAMESPACE_SEPARATOR
This is the character that separates name spaces.  | 
| Method Summary | |
|---|---|
 Type | 
getArrayType(Type componentType)
Obtain an array type with component type componentType. | 
 Vector<Type> | 
getDirectlySubsumedTypes(Type type)
Deprecated. Use getDirectSubtypes(Type) instead. | 
 List<Type> | 
getDirectSubtypes(Type type)
Get a List of the types directly subsumed by a given type.  | 
 Feature | 
getFeatureByFullName(String featureName)
Get a feature object for a given name.  | 
 Iterator<Feature> | 
getFeatures()
Get a list of features, in no particular order.  | 
 org.apache.uima.cas.impl.LowLevelTypeSystem | 
getLowLevelTypeSystem()
Return the low-level view of this type system.  | 
 Type | 
getParent(Type type)
Get the parent type for input type.  | 
 List<Type> | 
getProperlySubsumedTypes(Type type)
Return the list of all types subsumed by the input type.  | 
 Type | 
getTopType()
Get the top type, i.e., the root of the type system.  | 
 Type | 
getType(String typeName)
Get a type object for a given type name.  | 
 Iterator<Type> | 
getTypeIterator()
Get an iterator over all types, in no particular order.  | 
 TypeNameSpace | 
getTypeNameSpace(String name)
Create a type name space object for the name parameter.  | 
 boolean | 
subsumes(Type superType,
         Type subType)
Does one type inherit from the other?  | 
| Field Detail | 
|---|
static final char FEATURE_SEPARATOR
uima.cas.Annotation:begin.
static final char NAMESPACE_SEPARATOR
uima.cas.Annotation
| Method Detail | 
|---|
Type getType(String typeName)
typeName - The name of the type.
null if no such type exists.Type getArrayType(Type componentType)
componentType.
componentType - The type of the elements of the resulting array type. This can be any type, even
          another array type.
Feature getFeatureByFullName(String featureName)
featureName - The fully qualified name of the feature.
null if no such feature exists.Iterator<Type> getTypeIterator()
Type getTopType()
@Deprecated Vector<Type> getDirectlySubsumedTypes(Type type)
getDirectSubtypes(Type) instead.
type - The input type.
List<Type> getDirectSubtypes(Type type)
type - The input type.
List<Type> getProperlySubsumedTypes(Type type)
type - Input type.
type.Type getParent(Type type)
type - The type we want to know the parent of.
null for the top type.
boolean subsumes(Type superType,
                 Type subType)
superType - Supertype.subType - Subtype.
true iff sub inherits from super.Iterator<Feature> getFeatures()
TypeNameSpace getTypeNameSpace(String name)
name - The name of the name space.
TypeNameSpace object corresponding to name, or
         null, if name is not a legal type name space identifier.org.apache.uima.cas.impl.LowLevelTypeSystem getLowLevelTypeSystem()
LowLevelTypeSystem version of
         this type system.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||