Class InlineXmlCasConsumer

  • All Implemented Interfaces:
    CasObjectProcessor, CasProcessor, CasConsumer, ConfigurableResource, Resource

    public class InlineXmlCasConsumer
    extends CasConsumer_ImplBase
    A simple CAS consumer that generates inline XML and writes it to a file. UTF-8 encoding is used.

    This CAS Consumer takes two parameters:

    • OutputDirectory - path to directory into which output files will be written
    • OutputFilter (optional) - an FSMatchConstraint which annotations must match in order to be included in the output. If omitted, all annotations will be included in the output.

    The XML descriptor for this collection reader is stored in the uima-core.jar file as org/apache/uima/util/InlineXmlCasConsumer.xml. It can be accessed via the static method getDescription(), which parses the descirptor and returns a CasConsumerDescription object.

    • Field Detail

      • PARAM_OUTPUTDIR

        public static final java.lang.String PARAM_OUTPUTDIR
        Name of configuration parameter that must be set to the path of a directory into which the output files will be written.
        See Also:
        Constant Field Values
      • PARAM_XCAS

        public static final java.lang.String PARAM_XCAS
        Optional configuration parameter that specifies XCAS output files
        See Also:
        Constant Field Values
    • Constructor Detail

      • InlineXmlCasConsumer

        public InlineXmlCasConsumer()