Package org.apache.uima.resourceSpecifier

Examples of org.apache.uima.resourceSpecifier.AnalysisEngineType


        if ( delegate.isRemote() ) {
          RemoteAnalysisEngineType draet = dt.addNewRemoteAnalysisEngine();
          draet.setKey(delegate.getKey());
          containingAggregate.addDelegate( new RemoteDelegateEngineImpl( draet, (RemoteDelegateConfiguration)delegate, context) );
        } else {
          AnalysisEngineType dcaet = dt.addNewAnalysisEngine();
          dcaet.setKey(delegate.getKey());
          //  colocated delegate, either nested aggregate or primitive
          if ( ((ColocatedDelegateConfiguration)delegate).isAggregate() ) {
            AggregateDelegateEngine a1 = new AggregateDelegateEngineImpl( dcaet, delegate.getKey(), context, (ColocatedDelegateConfiguration)delegate);
            containingAggregate.addDelegate( a1 );
            //  recursive call to handle nested aggregate delegates
            addDelegateEngine(a1, ((ColocatedDelegateConfiguration)delegate).getDelegates(), dcaet.addNewDelegates(), context);
          } else {
            // primitive
            containingAggregate.addDelegate( new ColocatedDelegateEngineImpl( dcaet, (ColocatedDelegateConfiguration)delegate, context) );
          }
        }
View Full Code Here

TOP

Related Classes of org.apache.uima.resourceSpecifier.AnalysisEngineType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.