On 10/11/11 10:33 PM, Coarr, Matt wrote:
First, is the getAddress() method on Annotation (derived from FeatureStructureImpl 
according to the javadocs) the same value as the "id" value in the xmi 
serialization?
As far as I know the ids are re-mapped at least when the CAS is created from an xmi file, so they will differ. You can only assume that the Ids stay the same while the CAS is loaded into memory, e.g. having features which contain low level Ids would be a bad idea, since the ids will be different when the CAS is serialized and created again.

If you need Ids per annotation or feature structure, you should give them an id feature in the type definition,
then you can write your ids there.

Jörn

Reply via email to