public interface IDescribable<T extends DescriptionBase<?>> extends IAnnotatableEntity
descriptions
.
NOTE: For now we let it inherit only from IAnnotatableEntity
although all implementing classes are IdentifiableEntity
.
The reason is that we want to be careful as maybe in future
we may also want to have annotatable entities
with descriptions attached.
However, if this causes problems we may let IDescribable
inherit from IIdentifiableEntity
in future.Modifier and Type | Method and Description |
---|---|
void |
addDescription(T description)
|
java.util.Set<T> |
getDescriptions()
Returns the the set of descriptions attached to
this
IDescribable . |
void |
removeDescription(T description)
Removes one element from the set of
descriptions assigned
to this IDescribable . |
addAnnotation, addMarker, getAnnotations, getMarkers, getMarkers, hasMarker, hasMarker, markerValue, removeAnnotation, removeMarker, removeMarker
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
getCreated, getCreatedBy, getId, getUuid, isInstanceOf, isPersited, setCreated, setCreatedBy, setId, setUuid
java.util.Set<T> getDescriptions()
this
IDescribable
.void addDescription(T description)
description
- void removeDescription(T description)
descriptions
assigned
to this IDescribable
.description
- the description which should be removedgetDescriptions()
,
#addDescription(TaxonDescription)
,
TaxonDescription.getTaxon()
Copyright © 2007-2020 EDIT. All Rights Reserved.