/** * @see org.apache.uima.analysis_engine.metadata.AnalysisEngineMetaData#setFsIndexes(FsIndexDescription[]) */ public void setFsIndexes(FsIndexDescription[] aFsIndexes) { if (mFsIndexCollection == null) { mFsIndexCollection = new FsIndexCollection_impl(); } mFsIndexCollection.setFsIndexes(aFsIndexes); }
FsIndexDescription[] indexArray = new FsIndexDescription[indexes.size()]; indexes.toArray(indexArray); aggIndexColl.setFsIndexes(indexArray); return aggIndexColl;
/** * Constructs and returns a <code>ProcessingResourceMetaData</code> object * that contains the type system, indexes, and type priorities definitions * for the CAS. * * @return processing resource metadata object containing the * relevant parts of the CAS definition */ public ProcessingResourceMetaData getProcessingResourceMetaData() { ProcessingResourceMetaData md = UIMAFramework.getResourceSpecifierFactory().createProcessingResourceMetaData(); md.setTypeSystem(getTypeSystemDescription()); md.setTypePriorities(getTypePriorities()); FsIndexCollection indColl = UIMAFramework.getResourceSpecifierFactory().createFsIndexCollection(); indColl.setFsIndexes(getFsIndexDescriptions()); md.setFsIndexCollection(indColl); return md; } }
/** * Constructs and returns a <code>ProcessingResourceMetaData</code> object that contains the type * system, indexes, and type priorities definitions for the CAS. * * @return processing resource metadata object containing the relevant parts of the CAS definition */ public ProcessingResourceMetaData getMetadata() throws ResourceInitializationException { CasDefinition casDefinition = casManager.getCasDefinition(); ProcessingResourceMetaData md = UIMAFramework.getResourceSpecifierFactory() .createProcessingResourceMetaData(); md.setTypeSystem(casDefinition.getTypeSystemDescription()); md.setTypePriorities(casDefinition.getTypePriorities()); FsIndexCollection indColl = UIMAFramework.getResourceSpecifierFactory() .createFsIndexCollection(); indColl.setFsIndexes(casDefinition.getFsIndexDescriptions()); md.setFsIndexCollection(indColl); return md; }
if (newFsid != indexes) { somethingChanged = true; indexCollection.setFsIndexes(newFsid);