eu.etaxonomy.cdm.model.common
Class IdentifiableSource

java.lang.Object
  extended by eu.etaxonomy.cdm.model.common.CdmBase
      extended by eu.etaxonomy.cdm.model.common.VersionableEntity
          extended by eu.etaxonomy.cdm.model.common.AnnotatableEntity
              extended by eu.etaxonomy.cdm.model.common.ReferencedEntityBase
                  extended by eu.etaxonomy.cdm.model.common.OriginalSourceBase<IdentifiableEntity>
                      extended by 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

Field Summary
 
Fields inherited from class eu.etaxonomy.cdm.model.common.AnnotatableEntity
annotations, markers
 
Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase
uuid
 
Constructor Summary
IdentifiableSource()
           
 
Method Summary
 Object clone()
          Clones this versionable entity.
 IdentifiableSource clone(IdentifiableEntity sourcedObj)
          Clones this original source and sets the clones sourced object to 'sourceObj'
 IdentifiableEntity getSourcedObj()
          The object this original source is the source for
static IdentifiableSource NewInstance()
          Factory method
static IdentifiableSource NewInstance(Reference citation, String microCitation)
           
static IdentifiableSource NewInstance(String id)
           
static IdentifiableSource NewInstance(String id, String idNamespace)
           
static IdentifiableSource NewInstance(String id, String idNamespace, Reference citation, String microCitation)
           
 void setSourcedObj(IdentifiableEntity sourcedObj)
           
 
Methods inherited from class eu.etaxonomy.cdm.model.common.OriginalSourceBase
getIdInSource, getIdNamespace, setIdInSource, setIdNamespace, toString
 
Methods inherited from class eu.etaxonomy.cdm.model.common.ReferencedEntityBase
getCitation, getCitationMicroReference, getOriginalNameString, setCitation, setCitationMicroReference, setOriginalNameString
 
Methods inherited from class eu.etaxonomy.cdm.model.common.AnnotatableEntity
addAnnotation, addMarker, getAnnotations, getMarkers, hasMarker, hasMarker, removeAnnotation, removeMarker
 
Methods inherited from class eu.etaxonomy.cdm.model.common.VersionableEntity
equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface eu.etaxonomy.cdm.model.common.IOriginalSource
getCitation, getCitationMicroReference, setCitation, setCitationMicroReference
 
Methods inherited from interface eu.etaxonomy.cdm.model.common.IVersionableEntity
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
 
Methods inherited from interface eu.etaxonomy.cdm.model.common.ICdmBase
getCreated, getCreatedBy, getId, getUuid, setCreated, setCreatedBy, setId, setUuid
 

Constructor Detail

IdentifiableSource

public IdentifiableSource()
Method Detail

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.