A View consists of some metadata and a list of annotations.
Each LAPPS processing service will generally place the annotations it generates in its own View object. This makes it easier to determine the annotations produces by each processor and to quickly extract that subset of annotations.
However, the concept of a View is meant to be very generic and can contain any arbitrary collection of annotations grouped with arbitrary metadata.
Type | Name and description |
---|---|
List<Annotation> |
annotations The annotations that belong to this processing step. |
String |
id A unique ID value for this view. |
Map |
metadata User defined metadata for this processing step. |
Type | Name and description |
---|---|
void |
add(Annotation annotation) Adds an annotation to the processing step's list of annotations. |
void |
addAnnotation(Annotation annotation) Adds an annotation to the processing step's list of annotations. |
Contains |
addContains(String name, String producer, String type) Adds an entry to the contains section in the view object. |
void |
addMetaData(String name, Object value) Adds the name/value pair to the metadata map. |
boolean |
contains(String name) Returns true if the metadata.contains map contains the named key. |
List<Annotation> |
findByAtType(String type) |
Annotation |
findById(String id) |
Contains |
getContains(String name) |
Object |
getMetaData(String name) |
String |
getTimestamp() |
Annotation |
newAnnotation() Creates and returns a new Annotation. |
Annotation |
newAnnotation(String id, String type, long start = -1, long end = -1) Creates and returns a new Annotation. |
void |
setTimestamp() |
void |
setTimestamp(String time) |
The annotations that belong to this processing step.
A unique ID value for this view.
User defined metadata for this processing step.
Adds an annotation to the processing step's list of annotations.
Adds an annotation to the processing step's list of annotations.
Adds an entry to the contains section in the view object.
name
- The URI of the annotation type being created.producer
- The tool or program that generated the view.type
- The annotation type. Currently this field is under-defined.Returns true if the metadata.contains map contains the named key. Returns false otherwise. \
Creates and returns a new Annotation.
Creates and returns a new Annotation.
org.lappsgrid:serialization:2.7.0