@MappedSuperclass public abstract class SourcedEntityBase<SOURCE extends OriginalSourceBase<? extends SourcedEntityBase<SOURCE>>> extends AnnotatableEntity implements ISourceable<SOURCE>
annotations, markers
CLOB_LENGTH, uuid
Modifier | Constructor and Description |
---|---|
protected |
SourcedEntityBase() |
Modifier and Type | Method and Description |
---|---|
SOURCE |
addAggregationSource(ICdmTarget target)
Adds a source which links to another CDM object as source.
|
SOURCE |
addImportSource(java.lang.String id,
java.lang.String idNamespace,
Reference citation,
java.lang.String microCitation)
Adds a
source of type OriginalSourceType.Import
to this object. |
SOURCE |
addPrimaryTaxonomicSource(Reference citation)
Adds a
source of type
OriginalSourceType.PrimaryTaxonomicSource
to this object. |
SOURCE |
addPrimaryTaxonomicSource(Reference citation,
java.lang.String microCitation)
Adds a
source of type OriginalSourceType.PrimaryTaxonomicSource
to this object. |
SOURCE |
addSource(OriginalSourceType type,
Reference reference,
java.lang.String microReference,
java.lang.String originalInformation) |
SOURCE |
addSource(OriginalSourceType type,
java.lang.String id,
java.lang.String idNamespace,
Reference citation,
java.lang.String microCitation)
Adds a source that is newly created by its components.
|
void |
addSource(SOURCE source)
Adds a source to this object
|
void |
addSources(java.util.Set<SOURCE> sources)
Adds a set of original sources (citations) for this sourceable object
|
java.lang.Object |
clone()
Clones this versionable entity.
|
protected abstract SOURCE |
createNewSource(OriginalSourceType type,
java.lang.String idInSource,
java.lang.String idNamespace,
Reference citation,
java.lang.String microReference,
java.lang.String originalInformation,
ICdmTarget target) |
java.util.Set<SOURCE> |
getSources()
Returns the set of original sources (citations) for this sourceable object
|
void |
removeSource(SOURCE source)
Removes a source from this object
|
void |
removeSources() |
addAnnotation, addMarker, addMarker, getAnnotations, getAnnotations, getMarkers, getMarkers, hasMarker, hasMarker, markerValue, removeAnnotation, removeMarker, removeMarker, setAnnotations
cloneLanguageString, equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
addPropertyChangeListener, addPropertyChangeListener, addToSetWithChangeEvent, deproxy, deproxy, fireOnCreateEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUserFriendlyDescription, getUserFriendlyFieldName, getUserFriendlyTypeName, getUuid, hashCode, hasListeners, initListener, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isBlank, isInstanceOf, isNotBlank, isPersited, removeFromSetWithChangeEvent, removePropertyChangeListener, removePropertyChangeListener, replaceInList, setCreated, setCreatedBy, setId, setNewEntityListener, setUuid, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
getCreated, getCreatedBy, getId, getUuid, isInstanceOf, isPersited, setCreated, setCreatedBy, setId, setUuid
public java.util.Set<SOURCE> getSources()
ISourceable
getSources
in interface ISourceable<SOURCE extends OriginalSourceBase<? extends SourcedEntityBase<SOURCE>>>
public void addSource(SOURCE source)
ISourceable
addSource
in interface ISourceable<SOURCE extends OriginalSourceBase<? extends SourcedEntityBase<SOURCE>>>
public SOURCE addSource(OriginalSourceType type, java.lang.String id, java.lang.String idNamespace, Reference citation, java.lang.String microCitation)
ISourceable
null no source is added.
addSource
in interface ISourceable<SOURCE extends OriginalSourceBase<? extends SourcedEntityBase<SOURCE>>>
type
- the type
of the sourceidNamespace
- the namespace for the id in the sourcecitation
- the source as a reference
microCitation
- the details (e.g. page number) in the referencepublic SOURCE addSource(OriginalSourceType type, Reference reference, java.lang.String microReference, java.lang.String originalInformation)
addSource
in interface ISourceable<SOURCE extends OriginalSourceBase<? extends SourcedEntityBase<SOURCE>>>
public SOURCE addAggregationSource(ICdmTarget target)
ISourceable
addAggregationSource
in interface ISourceable<SOURCE extends OriginalSourceBase<? extends SourcedEntityBase<SOURCE>>>
target
- the target CDM sourcepublic void addSources(java.util.Set<SOURCE> sources)
ISourceable
addSources
in interface ISourceable<SOURCE extends OriginalSourceBase<? extends SourcedEntityBase<SOURCE>>>
public SOURCE addImportSource(java.lang.String id, java.lang.String idNamespace, Reference citation, java.lang.String microCitation)
ISourceable
source
of type OriginalSourceType.Import
to this object.addImportSource
in interface ISourceable<SOURCE extends OriginalSourceBase<? extends SourcedEntityBase<SOURCE>>>
idNamespace
- the namespace for the id in the sourcecitation
- the source as a reference
microCitation
- the details (e.g. page number) in the referencepublic SOURCE addPrimaryTaxonomicSource(Reference citation, java.lang.String microCitation)
ISourceable
source
of type OriginalSourceType.PrimaryTaxonomicSource
to this object.addPrimaryTaxonomicSource
in interface ISourceable<SOURCE extends OriginalSourceBase<? extends SourcedEntityBase<SOURCE>>>
citation
- the source as a reference
microCitation
- the details (e.g. page number) in the referencepublic SOURCE addPrimaryTaxonomicSource(Reference citation)
ISourceable
source
of type
OriginalSourceType.PrimaryTaxonomicSource
to this object.addPrimaryTaxonomicSource
in interface ISourceable<SOURCE extends OriginalSourceBase<? extends SourcedEntityBase<SOURCE>>>
citation
- the source as a reference
public void removeSource(SOURCE source)
ISourceable
removeSource
in interface ISourceable<SOURCE extends OriginalSourceBase<? extends SourcedEntityBase<SOURCE>>>
public void removeSources()
protected abstract SOURCE createNewSource(OriginalSourceType type, java.lang.String idInSource, java.lang.String idNamespace, Reference citation, java.lang.String microReference, java.lang.String originalInformation, ICdmTarget target)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
VersionableEntity
clone
in class AnnotatableEntity
java.lang.CloneNotSupportedException
Object.clone()
Copyright © 2007-2020 EDIT. All Rights Reserved.