Class StandardTypeBuilder
- java.lang.Object
-
- de.julielab.jcore.reader.xmlmapper.typeBuilder.StandardTypeBuilder
-
- All Implemented Interfaces:
TypeBuilder
public class StandardTypeBuilder extends Object implements TypeBuilder
In this class, the actual UIMA types are built from the templates which have been filled with values by the type parsers before. The standard type builder uses reflection to build a Type of the typesystem from a ConcreteType- Author:
- weigel
-
-
Constructor Summary
Constructors Constructor Description StandardTypeBuilder()creates an new instance of the StandardTypeBuilder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.uima.jcas.tcas.AnnotationbuildType(ConcreteType concreteType, org.apache.uima.jcas.JCas jcas)Instantiates a UIMA type object belonging to the class given byConcreteType.getFullClassName().
-
-
-
Method Detail
-
buildType
public org.apache.uima.jcas.tcas.Annotation buildType(ConcreteType concreteType, org.apache.uima.jcas.JCas jcas) throws org.apache.uima.collection.CollectionException
Instantiates a UIMA type object belonging to the class given byConcreteType.getFullClassName().All the type's features are set appropriately to their values given by
ConcreteType.getConcreteFeatures().- Specified by:
buildTypein interfaceTypeBuilder- Parameters:
concreteType- AConcreteTypeobject holding all information required to instantiate an actual object of the UIMA type represented by this object.jcas- TheJCasobject the returnedAnnotationobject should be added to.- Returns:
- A UIMA
Annotationobject of the class given byConcreteType.getFullClassName()with all features and their values given byConcreteType.getConcreteFeatures(). - Throws:
org.apache.uima.collection.CollectionException
-
-