@Entity public abstract class OriginalSourceBase<T extends ISourceable> extends ReferencedEntityBase implements IOriginalSource<T>, IIntextReferenceTarget
IOriginalSource
.IOriginalSource
,
Serialized Formannotations, markers
CLOB_LENGTH, uuid
Modifier | Constructor and Description |
---|---|
protected |
OriginalSourceBase() |
protected |
OriginalSourceBase(OriginalSourceType type)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addLink(ExternalLink link) |
java.lang.Object |
clone()
Clones this versionable entity.
|
boolean |
equalsByShallowCompare(ReferencedEntityBase other)
Indicates whether some other object is "equal to" this one.
|
ICdmTarget |
getCdmSource() |
java.lang.String |
getIdInSource()
Returns the (unique) identifier used in the source.
|
java.lang.String |
getIdNamespace()
Returns the id namespace.
|
java.util.Set<ExternalLink> |
getLinks() |
OriginalSourceType |
getType()
Returns the
type of the source. |
void |
removeLink(ExternalLink link) |
void |
setCdmSource(ICdmTarget cdmTarget)
Shortcut to add a
CdmLinkSource |
void |
setIdInSource(java.lang.String idInSource) |
void |
setIdNamespace(java.lang.String idNamespace) |
void |
setLinks(java.util.Set<ExternalLink> links) |
void |
setType(OriginalSourceType type) |
java.lang.String |
toString()
Overrides
Object.toString() . |
getCitation, getCitationMicroReference, getOriginalNameString, setCitation, setCitationMicroReference, setOriginalNameString
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
finalize, getClass, notify, notifyAll, wait, wait, wait
getCitation, getCitationMicroReference, setCitation, setCitationMicroReference
getCreated, getCreatedBy, getId, getUuid, isInstanceOf, isPersited, setCreated, setCreatedBy, setId, setUuid
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
protected OriginalSourceBase()
protected OriginalSourceBase(OriginalSourceType type)
type2
- public java.lang.String getIdInSource()
IOriginalSource
namespace
should be defined.
The namespace together with the identifier should be unique.getIdInSource
in interface IOriginalSource<T extends ISourceable>
public void setIdInSource(java.lang.String idInSource)
setIdInSource
in interface IOriginalSource<T extends ISourceable>
IOriginalSource.getIdInSource()
public java.lang.String getIdNamespace()
IOriginalSource
getIdNamespace
in interface IOriginalSource<T extends ISourceable>
public void setIdNamespace(java.lang.String idNamespace)
setIdNamespace
in interface IOriginalSource<T extends ISourceable>
idNamespace
- the idNamespace to setIOriginalSource.getIdNamespace()
public OriginalSourceType getType()
IOriginalSource
type
of the source. The type defines the relationship
between the current data and the original data.getType
in interface IOriginalSource<T extends ISourceable>
OriginalSourceType
public void setType(OriginalSourceType type)
setType
in interface IOriginalSource<T extends ISourceable>
type
- the type to be setIOriginalSource.getType()
public ICdmTarget getCdmSource()
getCdmSource
in interface IOriginalSource<T extends ISourceable>
public void setCdmSource(ICdmTarget cdmTarget)
IOriginalSource
CdmLinkSource
setCdmSource
in interface IOriginalSource<T extends ISourceable>
#setCdmSource()
public java.util.Set<ExternalLink> getLinks()
public void setLinks(java.util.Set<ExternalLink> links)
public void addLink(ExternalLink link)
public void removeLink(ExternalLink link)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
VersionableEntity
clone
in class ReferencedEntityBase
java.lang.CloneNotSupportedException
Object.clone()
public java.lang.String toString()
CdmBase
Object.toString()
.
This returns an String that identifies the object well without being necessarily unique. Internally the method is delegating the
call to {link CdmBase.instanceToString()
.Note: If overriding this method's javadoc always copy or link the above requirement. If not overwritten by a subclass method returns the class, id and uuid as a string for any CDM object.
For example: Taxon#13<b5938a98-c1de-4dda-b040-d5cc5bfb3bc0>
public boolean equalsByShallowCompare(ReferencedEntityBase other)
ReferencedEntityBase
equalsByShallowCompare
in class ReferencedEntityBase
Copyright © 2007-2020 EDIT. All Rights Reserved.