Open hsorby opened 3 years ago
I would think so.
No, I don't expect this behaviour and we should look to fix this. Either by removing componentEncapsulation
(and similar methods) from the annotator API or by having those methods do more than just wrap the expected return type method - i.e., check the item with that id is of the encapsulation type rather than any component.
Right now the annotator will return specific items if the given id matches. For example given the following:
If I ask the annotator for a component encapsulation with id
id3
I will get backcomponent2
(annotator->componentEncapsulation("id3");
. Likewise if I were to ask for a component with idid2
I will get backcomponent1
(annotator->component("id2");
).Is this the behaviour that we expect from the Annotator class?