@Test public void testGetDelegates() throws Exception { LeoAEDescriptor aggregate = new LeoAEDescriptor(); assertNotNull(aggregate); assertNull(aggregate.getDelegate("Bob")); aggregate.addDelegate( new LeoAEDescriptor().setAnalysisEngineDescription("desc.gov.va.vinci.leo.ae.WhitespaceTokenizerDescriptor", true) ).addDelegate( "desc.gov.va.vinci.leo.ae.WordTokenizerDescriptor", true, new NameValue("filterStopWords", false) ).setIsAsync(false); assertEquals(2, aggregate.getDelegateNames().size()); assertNull(aggregate.getDelegate("Bob")); assertEquals(false, aggregate.isAsync()); }
public LeoDelegate[] getDelegates() { if (mDelegates == null) { return null; } return mDelegates.toArray(new LeoDelegate[mDelegates.size()]); }
LeoAEDescriptor implements LeoDelegate { public LeoDelegate[] getDelegates() { if (mDelegates == null) { return null; } return mDelegates.toArray(new LeoDelegate[mDelegates.size()]); } }
LeoAEDescriptor implements LeoDelegate { public LeoDelegate[] getDelegates() { if (mDelegates == null) { return null; } return mDelegates.toArray(new LeoDelegate[mDelegates.size()]); } LeoAEDescriptor();  LeoAEDescriptor(String name, String implementation_class);  LeoAEDescriptor(String descriptor, boolean byName, NameValue... paramValues);  LeoAEDescriptor(List<LeoAEDescriptor> primitives);  LeoAEDescriptor(AnalysisEngineDescription aed); }
LeoAEDescriptor implements LeoDelegate { public LeoDelegate[] getDelegates() { if (mDelegates == null) { return null; } return mDelegates.toArray(new LeoDelegate[mDelegates.size()]); } LeoAEDescriptor();  LeoAEDescriptor(String name, String implementation_class);  LeoAEDescriptor(String descriptor, boolean byName, NameValue... paramValues);  LeoAEDescriptor(List<LeoAEDescriptor> primitives);  LeoAEDescriptor(AnalysisEngineDescription aed); LeoAEDescriptor addDelegate(String descriptor, boolean byName, NameValue... paramValues); LeoAEDescriptor addDelegate(LeoDelegate delegate); LeoDelegate getDelegate(String name); LeoDelegate[] getDelegates(); List<String> getDelegateNames(); LeoAEDescriptor setAnalysisEngineDescription(String descriptor, boolean byName); LeoAEDescriptor setAnalysisEngineDescription(AnalysisEngineDescription aed); AnalysisEngineDescription getAnalysisEngineDescription(); LeoAEDescriptor setParameterSetting(String name, Object value); LeoAEDescriptor setParameterSetting(NameValue fpv); LeoAEDescriptor addParameterSetting(String paramName, boolean isMandatory, boolean isMultiValued, String paramType); LeoAEDescriptor addParameterSetting(String paramName, boolean isMandatory, boolean isMultiValued, String paramType, Object initValue); LeoAEDescriptor addConfigurationParameter(ConfigurationParameter aConfigurationParameter); Object getParameterValue(String paramName); LeoAEDescriptor addType(String aTypeName, String aTypeDescription, String aSuperTypeName); LeoAEDescriptor addType(TypeDescription td); LeoAEDescriptor addTypeSystemDescription(LeoTypeSystemDescription ftsd); LeoAEDescriptor addTypeSystemDescription(TypeSystemDescription tsd); LeoAEDescriptor setTypeSystemDescription(LeoTypeSystemDescription ftsd); LeoAEDescriptor setTypeSystemDescription(TypeSystemDescription tsd); LeoTypeSystemDescription getTypeSystemDescription(); LeoAEDescriptor genTypeSystemJava(String srcDirectory, String binDirectory); boolean isAsync(); LeoAEDescriptor setIsAsync(boolean async); boolean isAggregate(); int getNumberOfInstances(); LeoAEDescriptor setNumberOfInstances(int numberOfInstances); int getMaxNumberOfInstances(); LeoAEDescriptor setDescriptorLocator(URI mDescriptorLocator); String getDescriptorLocator(); @Override ResourceSpecifier getResourceSpecifier(); void toXML(String filename); void toXML(); LeoAEDescriptor analysisEngineSection(TransformerHandler thd, boolean isTopDescriptor); boolean isPrimitive(); LeoAEDescriptor setImplementationName(String s); String getImplementationName(); LeoAEDescriptor setDescription(String desc); String getDescription(); LeoAEDescriptor setName(String name); String getName(); LeoAEDescriptor setVersion(String version); String getVersion(); LeoAEDescriptor setModifiesCas(boolean aModifiesCas); boolean getModifiesCas(); LeoAEDescriptor setMultipleDeploymentAllowed(boolean b); boolean isMultipleDeploymentAllowed(); LeoAEDescriptor setOutputsNewCASes(boolean b); boolean getOutputsNewCASes(); LeoAEDescriptor addCapability(Capability c); Capability[] getCapabilites(); LeoAEDescriptor addResourceConfiguration(ResourceManagerConfiguration rmc); @Override boolean isDeleteOnExit(); @Override LeoAEDescriptor setIsDeleteOnExit(boolean deleteOnExit); }
LeoAEDescriptor implements LeoDelegate { public LeoDelegate[] getDelegates() { if (mDelegates == null) { return null; } return mDelegates.toArray(new LeoDelegate[mDelegates.size()]); } LeoAEDescriptor();  LeoAEDescriptor(String name, String implementation_class);  LeoAEDescriptor(String descriptor, boolean byName, NameValue... paramValues);  LeoAEDescriptor(List<LeoAEDescriptor> primitives);  LeoAEDescriptor(AnalysisEngineDescription aed); LeoAEDescriptor addDelegate(String descriptor, boolean byName, NameValue... paramValues); LeoAEDescriptor addDelegate(LeoDelegate delegate); LeoDelegate getDelegate(String name); LeoDelegate[] getDelegates(); List<String> getDelegateNames(); LeoAEDescriptor setAnalysisEngineDescription(String descriptor, boolean byName); LeoAEDescriptor setAnalysisEngineDescription(AnalysisEngineDescription aed); AnalysisEngineDescription getAnalysisEngineDescription(); LeoAEDescriptor setParameterSetting(String name, Object value); LeoAEDescriptor setParameterSetting(NameValue fpv); LeoAEDescriptor addParameterSetting(String paramName, boolean isMandatory, boolean isMultiValued, String paramType); LeoAEDescriptor addParameterSetting(String paramName, boolean isMandatory, boolean isMultiValued, String paramType, Object initValue); LeoAEDescriptor addConfigurationParameter(ConfigurationParameter aConfigurationParameter); Object getParameterValue(String paramName); LeoAEDescriptor addType(String aTypeName, String aTypeDescription, String aSuperTypeName); LeoAEDescriptor addType(TypeDescription td); LeoAEDescriptor addTypeSystemDescription(LeoTypeSystemDescription ftsd); LeoAEDescriptor addTypeSystemDescription(TypeSystemDescription tsd); LeoAEDescriptor setTypeSystemDescription(LeoTypeSystemDescription ftsd); LeoAEDescriptor setTypeSystemDescription(TypeSystemDescription tsd); LeoTypeSystemDescription getTypeSystemDescription(); LeoAEDescriptor genTypeSystemJava(String srcDirectory, String binDirectory); boolean isAsync(); LeoAEDescriptor setIsAsync(boolean async); boolean isAggregate(); int getNumberOfInstances(); LeoAEDescriptor setNumberOfInstances(int numberOfInstances); int getMaxNumberOfInstances(); LeoAEDescriptor setDescriptorLocator(URI mDescriptorLocator); String getDescriptorLocator(); @Override ResourceSpecifier getResourceSpecifier(); void toXML(String filename); void toXML(); LeoAEDescriptor analysisEngineSection(TransformerHandler thd, boolean isTopDescriptor); boolean isPrimitive(); LeoAEDescriptor setImplementationName(String s); String getImplementationName(); LeoAEDescriptor setDescription(String desc); String getDescription(); LeoAEDescriptor setName(String name); String getName(); LeoAEDescriptor setVersion(String version); String getVersion(); LeoAEDescriptor setModifiesCas(boolean aModifiesCas); boolean getModifiesCas(); LeoAEDescriptor setMultipleDeploymentAllowed(boolean b); boolean isMultipleDeploymentAllowed(); LeoAEDescriptor setOutputsNewCASes(boolean b); boolean getOutputsNewCASes(); LeoAEDescriptor addCapability(Capability c); Capability[] getCapabilites(); LeoAEDescriptor addResourceConfiguration(ResourceManagerConfiguration rmc); @Override boolean isDeleteOnExit(); @Override LeoAEDescriptor setIsDeleteOnExit(boolean deleteOnExit); static final Logger LOG; static final int DEFAULT_NUMBER_INSTANCES; }