eu.etaxonomy.cdm.model.common
Class IdentifiableSource
java.lang.Object
eu.etaxonomy.cdm.model.common.CdmBase
eu.etaxonomy.cdm.model.common.VersionableEntity
eu.etaxonomy.cdm.model.common.AnnotatableEntity
eu.etaxonomy.cdm.model.common.ReferencedEntityBase
eu.etaxonomy.cdm.model.common.OriginalSourceBase<IdentifiableEntity>
eu.etaxonomy.cdm.model.common.IdentifiableSource
- All Implemented Interfaces:
- IAnnotatableEntity, ICdmBase, IOriginalSource<IdentifiableEntity>, IReferencedEntity, IVersionableEntity, Serializable, Cloneable
@Entity
public class IdentifiableSource
- extends OriginalSourceBase<IdentifiableEntity>
This class represents an IOriginalSource
that can be used with identifiable entity.
- Version:
- 1.0
- Author:
- a.mueller
- See Also:
IOriginalSource,
Serialized Form
| Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
uuid |
| Methods inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
addPropertyChangeListener, addPropertyChangeListener, clone, deproxy, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUuid, hashCode, hasListeners, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isInstanceOf, removePropertyChangeListener, removePropertyChangeListener, setCreated, setCreatedBy, setId, setUuid |
IdentifiableSource
public IdentifiableSource()
NewInstance
public static IdentifiableSource NewInstance()
- Factory method
- Returns:
NewInstance
public static IdentifiableSource NewInstance(String id)
NewInstance
public static IdentifiableSource NewInstance(String id,
String idNamespace)
NewInstance
public static IdentifiableSource NewInstance(String id,
String idNamespace,
Reference citation,
String microCitation)
NewInstance
public static IdentifiableSource NewInstance(Reference citation,
String microCitation)
getSourcedObj
public IdentifiableEntity getSourcedObj()
- Description copied from interface:
IOriginalSource
- The object this original source is the source for
- Returns:
setSourcedObj
public void setSourcedObj(IdentifiableEntity sourcedObj)
- See Also:
IOriginalSource.getSourcedObj()
clone
public IdentifiableSource clone(IdentifiableEntity sourcedObj)
throws CloneNotSupportedException
- Clones this original source and sets the clones sourced object to 'sourceObj'
- Throws:
CloneNotSupportedException- See Also:
Object.clone()
clone
public Object clone()
throws CloneNotSupportedException
- Description copied from class:
VersionableEntity
- Clones this versionable entity.
Set fields for nextVersion, previousVersion, updated, updatedBy and createdBy are set to null
The id is set to 0.
The uuid is created new.
The createdWhen is set to the current date.
- Overrides:
clone in class OriginalSourceBase<IdentifiableEntity>
- Throws:
CloneNotSupportedException- See Also:
Object.clone()
Copyright © 2007-2013 EDIT. All Rights Reserved.