|
||||||||||
| 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.Marker
@Entity public class Marker
This class aims to make available some "flags" for identifiable entities in a flexible way. Application developers (and even users) can define their own "flags" as a MarkerType.
| Field Summary |
|---|
| Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
|---|
uuid |
| Constructor Summary | |
|---|---|
protected |
Marker(MarkerType markerType,
boolean flag)
Constructor |
| Method Summary | |
|---|---|
Object |
clone()
Clones this versionable entity. |
Marker |
clone(AnnotatableEntity markedObject)
Clones this marker and sets the clones marked object to 'markedObject' |
boolean |
getFlag()
The flag value. |
AnnotatableEntity |
getMarkedObj()
|
MarkerType |
getMarkerType()
|
boolean |
getValue()
|
static Marker |
NewInstance()
Factory method |
static Marker |
NewInstance(AnnotatableEntity annotatedObject,
boolean flag,
MarkerType markerType)
|
static Marker |
NewInstance(MarkerType markerType,
boolean flag)
Factory method |
void |
setFlag(boolean flag)
|
void |
setMarkedObj(AnnotatableEntity newMarkedObject)
|
void |
setMarkerType(MarkerType type)
|
| 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, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.ICdmBase |
|---|
getCreated, getCreatedBy, getId, getUuid, setCreated, setCreatedBy, setId, setUuid |
| Constructor Detail |
|---|
protected Marker(MarkerType markerType,
boolean flag)
flag - | Method Detail |
|---|
public static Marker NewInstance()
public static Marker NewInstance(MarkerType markerType,
boolean flag)
markerType - The type of the markerflag - The value of the marker
public static Marker NewInstance(AnnotatableEntity annotatedObject,
boolean flag,
MarkerType markerType)
public AnnotatableEntity getMarkedObj()
public void setMarkedObj(AnnotatableEntity newMarkedObject)
public MarkerType getMarkerType()
public void setMarkerType(MarkerType type)
public boolean getFlag()
public void setFlag(boolean flag)
public boolean getValue()
getFlag()
public Object clone()
throws CloneNotSupportedException
VersionableEntity
clone in class VersionableEntityCloneNotSupportedExceptionObject.clone()
public Marker clone(AnnotatableEntity markedObject)
throws CloneNotSupportedException
CloneNotSupportedExceptionObject.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||