Class 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 Detail

      • StandardTypeBuilder

        public StandardTypeBuilder()
        creates an new instance of the StandardTypeBuilder
    • 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 by ConcreteType.getFullClassName().

        All the type's features are set appropriately to their values given by ConcreteType.getConcreteFeatures().

        Specified by:
        buildType in interface TypeBuilder
        Parameters:
        concreteType - A ConcreteType object holding all information required to instantiate an actual object of the UIMA type represented by this object.
        jcas - The JCas object the returned Annotation object should be added to.
        Returns:
        A UIMA Annotation object of the class given by ConcreteType.getFullClassName() with all features and their values given by ConcreteType.getConcreteFeatures().
        Throws:
        org.apache.uima.collection.CollectionException