@Entity public class MaterialOrMethodEvent extends EventBase implements java.lang.Cloneable
defined terms
of type TermType.MaterialOrMethod
TODO and then use this term as material or method term
. If this is not possible or if additional data needs to be added one may also
use freetext
field inherited from EventBase
. Actor and Date information
are also handled via EventBase
fields.
This class may be extended by more specific classes which require structured handling of additional parameters.
In general material or method data is not considered to be CDM core data. Therefore the decision was made to handle
all the data with a common base class which is MaterialOrMethodEvent
to reduce the number of tables required
in the underlying databases.annotations, markers
CLOB_LENGTH, uuid
Modifier | Constructor and Description |
---|---|
protected |
MaterialOrMethodEvent() |
protected |
MaterialOrMethodEvent(DefinedTerm definedMaterialOrMethod,
java.lang.String methodText) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clones this
Cloning . |
DefinedTerm |
getDefinedMaterialOrMethod()
A defined material or method given as a defined term in a materialOrMethod
term vocabulary . |
java.lang.String |
getDescription()
The
getDescription() method is inherited from EventBase . |
java.lang.String |
getMaterialMethodText()
A freetext describing the material or method or if
a
defined method is given
an additional information about how this method was used. |
static MaterialOrMethodEvent |
NewInstance() |
static MaterialOrMethodEvent |
NewInstance(DefinedTerm definedMaterialOrMethod,
java.lang.String methodText) |
void |
setDefinedMaterialOrMethod(DefinedTerm definedMaterialOrMethod) |
void |
setDescription(java.lang.String materialMethodText) |
void |
setMaterialMethodText(java.lang.String materialMethodText) |
getActor, getTimeperiod, setActor, setTimeperiod
addAnnotation, addMarker, addMarker, getAnnotations, getAnnotations, getMarkers, getMarkers, hasMarker, hasMarker, markerValue, removeAnnotation, removeMarker, removeMarker, setAnnotations
cloneLanguageString, equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
addPropertyChangeListener, addPropertyChangeListener, addToSetWithChangeEvent, deproxy, deproxy, fireOnCreateEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUserFriendlyDescription, getUserFriendlyFieldName, getUserFriendlyTypeName, getUuid, hashCode, hasListeners, initListener, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isBlank, isInstanceOf, isNotBlank, isPersited, removeFromSetWithChangeEvent, removePropertyChangeListener, removePropertyChangeListener, replaceInList, setCreated, setCreatedBy, setId, setNewEntityListener, setUuid, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
getCreated, getCreatedBy, getId, getUuid, isInstanceOf, isPersited, setCreated, setCreatedBy, setId, setUuid
protected MaterialOrMethodEvent()
protected MaterialOrMethodEvent(DefinedTerm definedMaterialOrMethod, java.lang.String methodText)
public static MaterialOrMethodEvent NewInstance()
public static MaterialOrMethodEvent NewInstance(DefinedTerm definedMaterialOrMethod, java.lang.String methodText)
public java.lang.String getDescription()
getDescription()
method is inherited from EventBase
.
In this class it is used as freetext describing the material or method used
or if a defined method
is given as
an additional information about how this defined method was used.getDescription
in class EventBase
getMaterialMethodText()
public void setDescription(java.lang.String materialMethodText)
setDescription
in class EventBase
getDescription()
,
setMaterialMethodText(String)
public java.lang.String getMaterialMethodText()
defined method
is given
an additional information about how this method was used.
In future this method could be removed to decrease the number
of transient getters in the CDM.public void setMaterialMethodText(java.lang.String materialMethodText)
getMaterialMethodText()
public DefinedTerm getDefinedMaterialOrMethod()
term vocabulary
. If such a defined material or method is used
the description
should primarily focus on describing
deviation from this method rather then repeating it.getDescription()
,
getMaterialMethodText()
public void setDefinedMaterialOrMethod(DefinedTerm definedMaterialOrMethod)
materialMethodTerm
- getDefinedMaterialOrMethod()
public java.lang.Object clone()
Cloning
. This is a shortcut that enables to create
a new instance that differs only slightly from this cloning by
modifying only some of the attributes.clone
in class EventBase
EventBase.clone()
,
Object.clone()
Copyright © 2007-2020 EDIT. All Rights Reserved.