public interface StoredAnnoOverrider extends AnnoOverrider
Convenience implementation of AnnoOverrider to which you simply add annotations that should apply to given elements. Note that this is a fairly blunt instrunmennt - the annotations you specify are simply and unconditionally superimposed onto each element.
Modifier and Type | Interface and Description |
---|---|
static class |
StoredAnnoOverrider.Factory
Static factory for StoredAnnoOverriders.
|
Modifier and Type | Method and Description |
---|---|
AnnoBeanSet |
findOrCreateStoredAnnoSetFor(ElementId id)
Returns an AnnoBeanSet from this StoredAnnoOverrider which applies to
the given ElementId.
|
init, modifyAnnos
AnnoBeanSet findOrCreateStoredAnnoSetFor(ElementId id)
Returns an AnnoBeanSet from this StoredAnnoOverrider which applies to the given ElementId. This will always create a new AnnoBeanSet unless findOrCreate... has been called previously for the given id on this instance of StoredAnnoOverrider.
Important: The AnnoBeanSet returned by this method will NOT contain any indigenous annotation information from the given element. The AnnoBeanSets returned here are ALWAYS EMPTY - it's up to you to fill them in.
If you need to be able to dynamically read indigenous values before making changes, then you must implement AnnoViewer directly yourself - StoredAnnoViewer is a simple extension and not designed to handle that sort of thing.