|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.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
@Entity public class Annotation
| Field Summary |
|---|
| Fields inherited from class eu.etaxonomy.cdm.model.common.LanguageStringBase |
|---|
language, text |
| 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 | |
|---|---|
protected |
Annotation()
|
protected |
Annotation(String text,
Language language)
Constructor |
| Method Summary | |
|---|---|
Object |
clone()
Clones this versionable entity. |
Annotation |
clone(AnnotatableEntity annotatedObject)
Clones this annotation and sets the clone's annotated object to 'annotatedObject' |
AnnotatableEntity |
getAnnotatedObj()
Currently envers does not support @Any |
AnnotationType |
getAnnotationType()
|
Person |
getCommentator()
|
URI |
getLinkbackUri()
|
static Annotation |
NewDefaultLanguageInstance(String text)
Factory method. |
static Annotation |
NewInstance(String text,
AnnotationType annotationType,
Language lang)
|
static Annotation |
NewInstance(String text,
Language lang)
Factory method. |
void |
setAnnotatedObj(AnnotatableEntity newAnnotatedObj)
Deprecated. should not be used, is only public for internal reasons |
void |
setAnnotationType(AnnotationType annotationType)
|
void |
setCommentator(Person commentator)
|
void |
setLinkbackUri(URI linkbackUri)
|
String |
toString()
Overrides Object.toString(). |
| Methods inherited from class eu.etaxonomy.cdm.model.common.LanguageStringBase |
|---|
getLanguage, getLanguageLabel, getLanguageLabel, getText, setLanguage, setText |
| 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.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 |
|---|
protected Annotation()
protected Annotation(String text,
Language language)
text - lang - | Method Detail |
|---|
public static Annotation NewInstance(String text,
Language lang)
text - lang -
public static Annotation NewInstance(String text,
AnnotationType annotationType,
Language lang)
public static Annotation NewDefaultLanguageInstance(String text)
text -
public AnnotatableEntity getAnnotatedObj()
@Deprecated public void setAnnotatedObj(AnnotatableEntity newAnnotatedObj)
newAnnotatedObj - public AnnotationType getAnnotationType()
public void setAnnotationType(AnnotationType annotationType)
public Person getCommentator()
public void setCommentator(Person commentator)
public URI getLinkbackUri()
public void setLinkbackUri(URI linkbackUri)
public String toString()
CdmBaseObject.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>
toString in class CdmBaseObject.toString()
public Object clone()
throws CloneNotSupportedException
VersionableEntity
clone in class LanguageStringBaseCloneNotSupportedExceptionObject.clone()
public Annotation clone(AnnotatableEntity annotatedObject)
throws CloneNotSupportedException
CloneNotSupportedExceptionObject.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||