|
||||||||||
| 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.description.StateData
@Entity public class StateData
This class represents the assignment of values (state terms) to features
corresponding to categorical data. A state data instance
constitutes an atomized part of an information piece (categorical data) so
that several state data instances may belong to one categorical data
instance.
This class corresponds to CharacterStateDataType according to the SDD schema.
| Field Summary |
|---|
| Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
|---|
uuid |
| Constructor Summary | |
|---|---|
StateData()
Class constructor: creates a new empty state data instance. |
|
| Method Summary | |
|---|---|
void |
addModifier(Modifier modifier)
Adds a modifier to the set of modifiers
used to qualify the validity of this state data. |
LanguageString |
addModifyingText(LanguageString text)
Deprecated. should follow the put semantic of maps, this method will be removed in v4.0 Use the putModifyingText method instead |
LanguageString |
addModifyingText(String text,
Language language)
Deprecated. should follow the put semantic of maps, this method will be removed in v4.0 Use the putModifyingText method instead |
Object |
clone()
Clones this state data. |
Set<Modifier> |
getModifiers()
Returns the set of modifiers used to qualify the validity
of this state data. |
Map<Language,LanguageString> |
getModifyingText()
Returns the multilanguage text used to qualify the validity
of this state data. |
State |
getState()
Returns the state term used in this state data. |
static StateData |
NewInstance()
Creates a new empty state data instance. |
static StateData |
NewInstance(State state)
Creates a new empty state data instance. |
LanguageString |
putModifyingText(LanguageString text)
Adds a translated text in a particular language
to the multilanguage text used to qualify the validity
of this state data. |
LanguageString |
putModifyingText(Language language,
String text)
Creates a language string based on the given text string
and the given language and adds it to the multilanguage text
used to qualify the validity of this state data. |
void |
removeModifier(Modifier modifier)
Removes one element from the set of modifiers
used to qualify the validity of this state data. |
LanguageString |
removeModifyingText(Language lang)
Removes from the multilanguage text used to qualify the validity
of this state data the one language string
with the given language. |
void |
setState(State state)
|
| 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.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 |
|---|
public StateData()
| Method Detail |
|---|
public static StateData NewInstance()
public static StateData NewInstance(State state)
State is a sub class of DefinedTermBase.
If the state passed as parameter has been created newly it has to be persisted before it is possible to save the StateData.
public State getState()
state term used in this state data.
public void setState(State state)
getState()public Set<Modifier> getModifiers()
modifiers used to qualify the validity
of this state data. This is only metainformation.
getModifiers in interface IModifiablepublic void addModifier(Modifier modifier)
modifier to the set of modifiers
used to qualify the validity of this state data.
addModifier in interface IModifiablemodifier - the modifier to be added to this state datagetModifiers()public void removeModifier(Modifier modifier)
modifiers
used to qualify the validity of this state data.
removeModifier in interface IModifiablemodifier - the modifier which should be removedgetModifiers(),
addModifier(Modifier)public Map<Language,LanguageString> getModifyingText()
multilanguage text used to qualify the validity
of this state data. The different language strings
contained in the multilanguage text should all have the same meaning.term vocabulary
as a modifier does.
NOTE: the actual content of this state data is NOT stored in the modifying text. This is only metainformation (like "Some experts express doubt about this assertion").
@Deprecated
public LanguageString addModifyingText(String text,
Language language)
putModifyingText method instead
language string based on the given text string
and the given language and adds it to the multilanguage text
used to qualify the validity of this state data.
text - the string describing the validity
in a particular languagelanguage - the language in which the text string is formulatedgetModifyingText(),
putModifyingText(LanguageString)
public LanguageString putModifyingText(Language language,
String text)
language string based on the given text string
and the given language and adds it to the multilanguage text
used to qualify the validity of this state data.
language - the language in which the text string is formulatedtext - the string describing the validity
in a particular languagegetModifyingText(),
addModifyingText(LanguageString)@Deprecated public LanguageString addModifyingText(LanguageString text)
putModifyingText method instead
text in a particular language
to the multilanguage text used to qualify the validity
of this state data.
text - the language string describing the validity
in a particular languagegetModifyingText(),
putModifyingText(Language, String)public LanguageString putModifyingText(LanguageString text)
text in a particular language
to the multilanguage text used to qualify the validity
of this state data.
text - the language string describing the validity
in a particular languagegetModifyingText(),
putModifyingText(Language, String)public LanguageString removeModifyingText(Language lang)
multilanguage text used to qualify the validity
of this state data the one language string
with the given language.
lang - the language in which the language string to be removed
has been formulatedgetModifyingText()public Object clone()
clone in class VersionableEntityVersionableEntity.clone(),
Object.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||