@Entity public class TextualTypeDesignation extends TypeDesignationBase<SpecimenTypeDesignationStatus>
taxon names
by text only.annotations, markers
CLOB_LENGTH, uuid
Modifier | Constructor and Description |
---|---|
protected |
TextualTypeDesignation() |
protected |
TextualTypeDesignation(java.lang.String text,
Language language,
boolean isVerbatim,
Reference citation,
java.lang.String citationMicroReference,
java.lang.String originalNameString) |
Modifier and Type | Method and Description |
---|---|
LanguageString |
getLanguageText(Language language)
Returns the multi-language text with the content of this text data for
a specific language.
|
java.lang.String |
getPreferredText(Language language) |
java.util.Map<Language,LanguageString> |
getText() |
java.lang.String |
getText(Language language) |
boolean |
hasDesignationSource()
Deprecated.
usually a
TextualTypeDesignation may have multiple types,
therefore the type is not defined |
boolean |
isVerbatim()
Flag indicating if this textual type designation is a citation (e.g.
|
static TextualTypeDesignation |
NewInstance() |
static TextualTypeDesignation |
NewInstance(java.lang.String text,
Language language,
boolean isVerbatim,
Reference citation,
java.lang.String citationMicroReference,
java.lang.String originalNameString) |
LanguageString |
putText(LanguageString languageString)
Adds a translated
text in a particular language
to the multi-language text representing the content of this text data. |
LanguageString |
putText(Language language,
java.lang.String text)
Creates a
language string based on the given text string
and the given language , returns it and adds it to the multilanguage
text representing the content of this text data. |
LanguageString |
removeText(Language language)
Removes from the multilanguage representing the content of
this text data the one
language string
with the given language . |
void |
removeType()
Deprecated.
a textual type designation has no specific type
therefore the type can not be removed.
|
void |
setCitation(Reference citation)
Deprecated.
not relevant for
TextualTypeDesignation throws Exception |
void |
setCitationMicroReference(java.lang.String citationMicroReference)
Deprecated.
not relevant for
TextualTypeDesignation throws Exception |
void |
setNotDesignated(boolean notDesignated)
Deprecated.
not relevant for
TextualTypeDesignation throws Exception |
void |
setTypeStatus(SpecimenTypeDesignationStatus typeStatus)
Deprecated.
not relevant for
TextualTypeDesignation throws Exception |
void |
setVerbatim(boolean isVerbatim) |
addTypifiedName, clone, createNewSource, getCitation, getCitationMicroReference, getRegistrations, getTypeStatus, getTypifiedNames, isNotDesignated, removeTypifiedName
addAggregationSource, addImportSource, addPrimaryTaxonomicSource, addPrimaryTaxonomicSource, addSource, addSource, addSource, addSources, getSources, removeSource, removeSources
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
public static TextualTypeDesignation NewInstance()
public static TextualTypeDesignation NewInstance(java.lang.String text, Language language, boolean isVerbatim, Reference citation, java.lang.String citationMicroReference, java.lang.String originalNameString)
public java.util.Map<Language,LanguageString> getText()
public LanguageString putText(Language language, java.lang.String text)
language string
based on the given text string
and the given language
, returns it and adds it to the multilanguage
text representing the content of this text data.language
- the language in which the text string is formulatedtext
- the string representing the content of the text data
in a particular language#getMultilanguageText()
,
putText(LanguageString)
public LanguageString putText(LanguageString languageString)
text in a particular language
to the multi-language text representing the content of this text data.
The given language string will be returned.languageString
- the language string representing the content of
the text data in a particular languagegetText()
,
#putText(String, Language)
,
HashMap.put(Object, Object)
public LanguageString removeText(Language language)
language string
with the given language
. Returns the removed
language string.language
- the language in which the language string to be removed
has been formulated#getMultilanguageText()
public LanguageString getLanguageText(Language language)
language
- the language in which the text string looked for is formulatedpublic java.lang.String getText(Language language)
public boolean isVerbatim()
public void setVerbatim(boolean isVerbatim)
public java.lang.String getPreferredText(Language language)
@Deprecated public boolean hasDesignationSource()
TextualTypeDesignation
may have multiple types,
therefore the type is not definedTypeDesignationStatusBase.hasDesignationSource()
hasDesignationSource
in interface ITypeDesignation
hasDesignationSource
in class TypeDesignationBase<SpecimenTypeDesignationStatus>
TypeDesignationStatusBase.hasDesignationSource()
@Deprecated public void setTypeStatus(SpecimenTypeDesignationStatus typeStatus)
TextualTypeDesignation
throws ExceptionsetTypeStatus
in class TypeDesignationBase<SpecimenTypeDesignationStatus>
TypeDesignationBase.getTypeStatus()
@Deprecated public void setNotDesignated(boolean notDesignated)
TextualTypeDesignation
throws ExceptionsetNotDesignated
in class TypeDesignationBase<SpecimenTypeDesignationStatus>
TypeDesignationBase.isNotDesignated()
@Deprecated public void setCitationMicroReference(java.lang.String citationMicroReference)
TextualTypeDesignation
throws ExceptionsetCitationMicroReference
in class TypeDesignationBase<SpecimenTypeDesignationStatus>
@Deprecated public void setCitation(Reference citation)
TextualTypeDesignation
throws ExceptionsetCitation
in class TypeDesignationBase<SpecimenTypeDesignationStatus>
@Deprecated public void removeType()
removeType
in class TypeDesignationBase<SpecimenTypeDesignationStatus>
Copyright © 2007-2020 EDIT. All Rights Reserved.