Class: EMLAnnotations

EMLAnnotations()

A collection of EMLAnnotations.

Constructor

new EMLAnnotations()

Since:
  • 2.19.0
Source:

Extends

  • Backbone.Collection

Members

model :EMLAnnotation

The reference to the model class that this collection is made of.
Type:
Since:
  • 2.19.0
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:
  • 2.19.0
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:
Name Type Description
annotation EMLAnnotation
Since:
  • 2.19.0
Source: