Interface CasObjectProcessor

    • Method Detail

      • processCas

        void processCas​(CAS[] aCASes)
                 throws ResourceProcessException
        Processes multiple CASes.
        Parameters:
        aCASes - an array of CASes to be processed. Additional information may be added to these CASes (if this CAS processor is not read-only).
        Throws:
        ResourceProcessException - if processing fails for any of the CASes
      • typeSystemInit

        void typeSystemInit​(TypeSystem aTypeSystem)
                     throws ResourceInitializationException
        Informs this CasConsumer that the CAS TypeSystem has changed. The CPM calls this method prior to initiating collection processing, and will call it again whenever the CAS TypeSystem changes.

        In this method, the CasConsumer should use the TypeSystem to resolve the names of Type and Features to the actual Type and Feature objects, which can then be used during processing.

        Parameters:
        aTypeSystem - the type system to use
        Throws:
        ResourceInitializationException - if the type system is not compatible with this Cas Consumer