sharedData.addOutOfTypeSystemAttribute(fsAddr, featName, featVal);
private void remapFSListHeads(int addr) throws SAXParseException { final int type = casBeingFilled.getHeapValue(addr); if (!listUtils.isFsListType(type)) return; int[] feats = casBeingFilled.getTypeSystemImpl().ll_getAppropriateFeatures(type); if (feats.length == 0) return; int headFeat = feats[0]; int featVal = casBeingFilled.getFeatureValue(addr, headFeat); if (featVal != CASImpl.NULL) { int fsValAddr = CASImpl.NULL; try { fsValAddr = getFsAddrForXmiId(featVal); } catch (NoSuchElementException e) { if (!lenient) { throw createException(XCASParsingException.UNKNOWN_ID, Integer.toString(featVal)); } else { //this may be a reference to an out-of-typesystem FS this.sharedData.addOutOfTypeSystemAttribute(addr, CAS.FEATURE_BASE_NAME_HEAD, Integer.toString(featVal)); } } casBeingFilled.setFeatureValue(addr, headFeat, fsValAddr); } }
this.sharedData.addOutOfTypeSystemAttribute( addr, feat.getShortName(), Integer.toString(featVal));