Constructor
new EMLAnnotations()
- Since:
- Source:
Extends
Members
The reference to the model class that this collection is made of.
Type:
- Since:
- Source:
Methods
hasDuplicateOf(annotation) → {Boolean}
Checks if this collection already has an annotation for the same property URI.
Parameters:
Name |
Type |
Description |
annotation |
EMLAnnotation
|
The EMLAnnotation to compare against the annotations already in this collection. |
- Since:
- Source:
Returns:
Returns true is this collection already has an annotation for this property.
-
Type
-
Boolean
replaceDuplicateWith(annotation)
Removes the EMLAnnotation from this collection that has the same propertyURI as the given annotation.
Then adds the given annotation to the collection. If no duplicate is found, the given annotation is still added
to the collection.
Parameters:
- Since:
- Source: