public class AnnotationAssertionImpl extends Object implements AnnotationAssertion<AnnotationBeanSPI>
Constructor and Description |
---|
AnnotationAssertionImpl() |
AnnotationAssertionImpl(AnnotationBeanSPI freeTextDescription,
AnnotationRole annotationRole,
List<Person> creators,
AnnotationSourceSPI annotationSource) |
Modifier and Type | Method and Description |
---|---|
void |
addCreator(Person person) |
void |
addCurationEvent(CurationEvent<?> curationEvent) |
Date |
getCreationDate()
All curation events are marked with their creation date, this is the date
at which the curation event was associated with its target.
|
List<? extends Person> |
getCreators()
Each curateable has a list of people associated with it, frequently one
person and in some cases none, although this should be avoided if
possible.
|
List<CurationEvent<?>> |
getCurationAssertions()
Curateable instances have a list of curation events which are used to
determine whether the implementing object is valid given a particular
interpretive context.
|
AnnotationBeanSPI |
getDetail()
Each annotation assertion contains a bean specifying the actual
annotation, varying from a simple string for a free text description to
more sophisticated semantic annotations or controlled vocabularies.
|
AnnotationRole |
getRole()
The annotation assertion plays one of several roles within the annotation
chain, either an initial assertion, a refinement of a previous assertion
or a replacement of a previous assertion.
|
AnnotationSourceSPI |
getSource()
Each annotation or curation has a resource from which the event is
inherently derived, for example if the annotation was created manually
after reading a paper the source would unambiguously specify the
publication.
|
void |
removeAnnotationBean() |
void |
removeAnnotationRole() |
void |
removeAnnotationSource() |
void |
removeCreator(Person person) |
void |
removeCurationEvent(CurationEvent<?> curationEvent) |
void |
setAnnotationBean(AnnotationBeanSPI annotationBean) |
void |
setAnnotationRole(AnnotationRole annotationRole) |
void |
setAnnotationSource(AnnotationSourceSPI annotationSource) |
void |
setCreators(List<Person> creators) |
void |
setDate(Date date) |
public AnnotationAssertionImpl()
public AnnotationAssertionImpl(AnnotationBeanSPI freeTextDescription, AnnotationRole annotationRole, List<Person> creators, AnnotationSourceSPI annotationSource)
public AnnotationBeanSPI getDetail()
AnnotationAssertion
getDetail
in interface AnnotationAssertion<AnnotationBeanSPI>
public AnnotationRole getRole()
AnnotationAssertion
getRole
in interface AnnotationAssertion<AnnotationBeanSPI>
public Date getCreationDate()
Curateable
getCreationDate
in interface Curateable
public List<? extends Person> getCreators()
Curateable
getCreators
in interface Curateable
public void addCreator(Person person)
public void removeCreator(Person person)
public List<CurationEvent<?>> getCurationAssertions()
Curateable
getCurationAssertions
in interface Curateable
public AnnotationSourceSPI getSource()
Curateable
getSource
in interface Curateable
public void setAnnotationBean(AnnotationBeanSPI annotationBean)
public void setAnnotationRole(AnnotationRole annotationRole)
public void removeAnnotationRole()
public void setDate(Date date)
public void setAnnotationSource(AnnotationSourceSPI annotationSource)
public void removeAnnotationSource()
public void removeAnnotationBean()
public void addCurationEvent(CurationEvent<?> curationEvent)
public void removeCurationEvent(CurationEvent<?> curationEvent)
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.