eu.etaxonomy.cdm.model.common
Class Annotation
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.LanguageStringBase
eu.etaxonomy.cdm.model.common.Annotation
- All Implemented Interfaces:
- IAnnotatableEntity, ICdmBase, IVersionableEntity, Serializable, Cloneable
public class Annotation
- extends LanguageStringBase
- implements Cloneable
- Version:
- 1.0
- Author:
- m.doering
- See Also:
- 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, invokeSetMethod, invokeSetMethodWithNull, isInstanceOf, removePropertyChangeListener, removePropertyChangeListener, setCreated, setCreatedBy, setId, setUuid |
Annotation
protected Annotation()
Annotation
protected Annotation(String text,
Language language)
- Constructor
- Parameters:
text - lang -
NewInstance
public static Annotation NewInstance(String text,
Language lang)
- Factory method.
- Parameters:
text - lang -
- Returns:
NewInstance
public static Annotation NewInstance(String text,
AnnotationType annotationType,
Language lang)
NewDefaultLanguageInstance
public static Annotation NewDefaultLanguageInstance(String text)
- Factory method. Using default language.
- Parameters:
text -
- Returns:
getAnnotatedObj
public AnnotatableEntity getAnnotatedObj()
- Currently envers does not support @Any
- Returns:
setAnnotatedObj
@Deprecated
public void setAnnotatedObj(AnnotatableEntity newAnnotatedObj)
- Deprecated. should not be used, is only public for internal reasons
- Parameters:
newAnnotatedObj -
getAnnotationType
public AnnotationType getAnnotationType()
setAnnotationType
public void setAnnotationType(AnnotationType annotationType)
getCommentator
public Person getCommentator()
setCommentator
public void setCommentator(Person commentator)
getLinkbackUrl
public URL getLinkbackUrl()
setLinkbackUrl
public void setLinkbackUrl(URL linkbackUrl)
toString
public String toString()
- Description copied from class:
CdmBase
- Overrides
Object.toString().
This returns an String that identifies the object well without beeing necessarily unique.
Specification: This method should never call other object' methods so it can be well used for debugging
without problems like lazy loading, unreal states etc.
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
- Overrides:
toString in class CdmBase
- See Also:
Object.toString()
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 LanguageStringBase
- Throws:
CloneNotSupportedException- See Also:
Object.clone()
clone
public Annotation clone(AnnotatableEntity annotatedObject)
throws CloneNotSupportedException
- Clones this annotation and sets the clone's annotated object to 'annotatedObject'
- Throws:
CloneNotSupportedException- See Also:
Object.clone()
Copyright © 2007-2012 EDIT. All Rights Reserved.