Class CasToXmiConsumer

  • All Implemented Interfaces:
    org.apache.uima.analysis_component.AnalysisComponent

    public class CasToXmiConsumer
    extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
    Write a XMI to a file.
    Author:
    tomanek, muehlhausen
    • Constructor Detail

      • CasToXmiConsumer

        public CasToXmiConsumer()
    • Method Detail

      • initialize

        public void initialize​(org.apache.uima.UimaContext aContext)
                        throws org.apache.uima.resource.ResourceInitializationException
        Specified by:
        initialize in interface org.apache.uima.analysis_component.AnalysisComponent
        Overrides:
        initialize in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
        Throws:
        org.apache.uima.resource.ResourceInitializationException
      • process

        public void process​(org.apache.uima.jcas.JCas jcas)
                     throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
        Specified by:
        process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
        Parameters:
        jcas - a CAS which has been populated by the TAEs
        Throws:
        org.apache.uima.resource.ResourceProcessException - if there is an error in processing the Resource
        org.apache.uima.analysis_engine.AnalysisEngineProcessException
      • batchProcessComplete

        public void batchProcessComplete​(org.apache.uima.util.ProcessTrace processTrace)
                                  throws IOException,
                                         org.apache.uima.resource.ResourceProcessException
        Throws:
        IOException
        org.apache.uima.resource.ResourceProcessException
      • collectionProcessComplete

        public void collectionProcessComplete​(org.apache.uima.util.ProcessTrace processTrace)
                                       throws IOException
        Throws:
        IOException