getIdentifierForAnnotation

Returns the unique identifier used by Instant for the given annotation.

The Instant identifier of an annotation is stable over time, so that it can be used to associate arbitrary data from separate sources with an annotation. The values generated by Instant are URL, XML, and file-system safe. They are unique within the context of the document, and can be used to retrieve the same annotation later by calling getAnnotationForIdentifier.

Return

A string uniquely identifying the given annotation in this document.

Parameters

annotation

The annotation for which the identifier should be returned.

Throws

when the annotation does not belong to this document.