public FSIterator<SofaFS> getSofaIterator() { return casImpl.getSofaIterator(); }
final FSIterator<SofaFS> sofaIter = getSofaIterator();
@Override public Iterator<CAS> getViewIterator(String localViewNamePrefix) { // do sofa mapping for current component String absolutePrefix = null; if (getCurrentComponentInfo() != null) { absolutePrefix = getCurrentComponentInfo().mapToSofaID(localViewNamePrefix); } if (absolutePrefix == null) { absolutePrefix = localViewNamePrefix; } // find Sofas with this prefix List<CAS> viewList = new ArrayList<CAS>(); FSIterator<SofaFS> sofaIter = getSofaIterator(); while (sofaIter.hasNext()) { SofaFS sofa = sofaIter.next(); String sofaId = sofa.getSofaID(); if (sofaId.startsWith(absolutePrefix)) { if ((sofaId.length() == absolutePrefix.length()) || (sofaId.charAt(absolutePrefix.length()) == '.')) { viewList.add(getView(sofa)); } } } return viewList.iterator(); }
this.sofaSelectionComboBox.removeAllItems(); this.sofaSelectionComboBox.addItem(CAS.NAME_DEFAULT_SOFA); Iterator<?> sofas = ((CASImpl) MainFrame.this.cas).getBaseCAS().getSofaIterator(); Feature sofaIdFeat = MainFrame.this.cas.getTypeSystem().getFeatureByFullName( CAS.FEATURE_FULL_NAME_SOFAID);
private SofaFS getSofa(String sofaName) { FSIterator<SofaFS> iterator = this.svd.baseCAS.getSofaIterator(); while (iterator.isValid()) { SofaFS sofa = iterator.get(); if (sofaName.equals(getStringValue(((FeatureStructureImpl) sofa).getAddress(), TypeSystemImpl.sofaIdFeatCode))) { return sofa; } iterator.moveToNext(); } CASRuntimeException e = new CASRuntimeException(CASRuntimeException.SOFANAME_NOT_FOUND, new String[] { sofaName }); throw e; }
this.sofaSelectionComboBox.removeAllItems(); this.sofaSelectionComboBox.addItem(CAS.NAME_DEFAULT_SOFA); Iterator<?> sofas = ((CASImpl) getCas()).getBaseCAS().getSofaIterator(); Feature sofaIdFeat = getCas().getTypeSystem() .getFeatureByFullName(CAS.FEATURE_FULL_NAME_SOFAID);
FSIterator<SofaFS> sofaIter = this.casBeingFilled.getSofaIterator(); while(sofaIter.hasNext()) { SofaFS sofa = sofaIter.next();
FSIterator<SofaFS> iterator = this.svd.baseCAS.getSofaIterator(); final Feature idFeat = getTypeSystem().getFeatureByFullName(CAS.FEATURE_FULL_NAME_SOFAID);
FSIterator<SofaFS> iterator = this.getSofaIterator(); final int idFeatCode = ((FeatureImpl)getTypeSystem().getFeatureByFullName(CAS.FEATURE_FULL_NAME_SOFAID)).getCode();