@Entity @ClassBridge(impl=DefinedTermBaseClassBridge.class, params=) public class NamedArea extends OrderedTermBase<NamedArea>
Modifier and Type | Class and Description |
---|---|
static class |
NamedArea.LevelNode |
static class |
NamedArea.NamedAreaNode |
Modifier and Type | Field and Description |
---|---|
static java.util.UUID |
uuidContinentVocabulary |
static java.util.UUID |
uuidTdwgAreaVocabulary |
static java.util.UUID |
uuidWaterbodyVocabulary |
orderIndex
partOf, vocabulary
cacheStrategy, NOT_PROTECTED, PROTECTED, protectedTitleCache, titleCache
annotations, markers
CLOB_LENGTH, uuid
Modifier | Constructor and Description |
---|---|
protected |
NamedArea()
Deprecated.
|
protected |
NamedArea(java.lang.String description,
java.lang.String label,
java.lang.String labelAbbrev) |
Modifier and Type | Method and Description |
---|---|
void |
addCountry(Country country) |
protected static void |
addTdwgArea(NamedArea area) |
static NamedArea |
AFRICA() |
static NamedArea |
ANTARCTICA() |
static NamedArea |
ARCTICOCEAN() |
static NamedArea |
ASIA_TEMPERATE() |
static NamedArea |
ASIA_TROPICAL() |
static NamedArea |
ATLANTICOCEAN() |
static NamedArea |
AUSTRALASIA() |
static NamedArea |
BLACKSEA() |
static NamedArea |
CASPIANSEA() |
java.lang.Object |
clone()
Clones this NamedArea.
|
static NamedArea |
EUROPE() |
java.util.List<NamedArea> |
getAllLevelList() |
static NamedArea |
getAreaByTdwgAbbreviation(java.lang.String tdwgAbbreviation)
Deprecated.
|
static NamedArea |
getAreaByTdwgLabel(java.lang.String tdwgLabel)
Deprecated.
|
protected static NamedArea |
getContinentByUuid(java.util.UUID uuid)
Deprecated.
|
java.util.Set<Country> |
getCountries() |
java.util.Set<NamedArea> |
getGeneralizationOf()
Returns all defined terms this term is a direct generalization for.
|
static NamedArea.NamedAreaNode |
getHiearchieList(java.util.List<NamedArea> areaList)
This method returns a sorted tree structure which sorts areas by it's level and within the same level
alphabetically (TODO to be tested).
|
java.util.Set<NamedArea> |
getIncludes()
Returns all defined terms this term includes.
|
NamedArea |
getKindOf()
Returns the defined term this term is a kind of.
|
NamedAreaLevel |
getLevel() |
NamedArea |
getPartOf()
Returns the defined term this term is a part of.
|
NamedArea |
getPartOfWorkaround()
Deprecated.
|
Point |
getPointApproximation() |
Media |
getShape() |
protected static NamedArea |
getTdwgTermByUuid(java.util.UUID uuid)
Deprecated.
|
NamedAreaType |
getType() |
TimePeriod |
getValidPeriod() |
protected static NamedArea |
getWaterbodyByUuid(java.util.UUID uuid)
Deprecated.
|
static NamedArea |
INDIANOCEAN() |
static boolean |
isTdwgAreaAbbreviation(java.lang.String abbrev)
Deprecated.
|
static boolean |
isTdwgAreaLabel(java.lang.String label)
Deprecated.
|
static java.lang.String |
labelWithLevel(NamedArea namedArea,
Language language)
Returns the label of the named area together with the area level label and the abbreviated label.
|
static NamedArea |
MEDITERRANEANSEA() |
static NamedArea |
NewInstance()
Factory method
|
static NamedArea |
NewInstance(java.lang.String description,
java.lang.String label,
java.lang.String labelAbbrev)
Factory method
|
static NamedArea |
NORTH_AMERICA() |
static NamedArea |
PACIFIC() |
static NamedArea |
PACIFICOCEAN() |
protected int |
partOfCsvLineIndex()
Get the
|
static NamedArea |
PERSIANGULF() |
NamedArea |
readCsvLine(java.lang.Class<NamedArea> termClass,
java.util.List<java.lang.String> csvLine,
TermType termType,
java.util.Map<java.util.UUID,DefinedTermBase> terms,
boolean abbrevAsId)
Fills the
term with contents from a csvLine. |
static NamedArea |
REDSEA() |
void |
removeCountry(Country country) |
void |
resetTerms() |
protected void |
setDefaultContinentTerms(TermVocabulary<NamedArea> termVocabulary) |
protected void |
setDefaultTerms(TermVocabulary<NamedArea> termVocabulary) |
protected void |
setDefaultWaterbodyTerms(TermVocabulary<NamedArea> termVocabulary) |
protected void |
setGeneralizationOf(java.util.Set<NamedArea> value) |
protected void |
setIncludes(java.util.Set<NamedArea> includes) |
void |
setKindOf(NamedArea kindOf) |
void |
setLevel(NamedAreaLevel level) |
void |
setPartOf(NamedArea partOf) |
void |
setPointApproximation(Point pointApproximation) |
void |
setShape(Media shape) |
protected void |
setTdwgDefaultTerms(TermVocabulary<NamedArea> tdwgTermVocabulary) |
void |
setType(NamedAreaType type) |
void |
setValidPeriod(TimePeriod validPeriod) |
static NamedArea |
SOUTH_AMERICA() |
static NamedArea |
SOUTHERNOCEAN() |
java.lang.String |
toString()
Overrides
Object.toString() . |
compareTo, decreaseIndex, getNextHigherTerm, getNextLowerTerm, getOrderIndex, incrementIndex, isHigher, isLower, performCompareTo
addGeneralizationOf, addIncludes, addMedia, getByUuid, getCacher, getGeneralizationOf, getIdInVocabulary, getMedia, getSymbol, getSymbol2, getTermByClassAndUUID, getVocabulary, isKindOf, readCsvLine, readIsPartOf, removeGeneralization, removeIncludes, removeMedia, setCacher, setIdInVocabulary, setSymbol, setSymbol2, setVocabulary, writeCsvLine
addRepresentation, getDescription, getDescription, getLabel, getLabel, getPreferredRepresentation, getPreferredRepresentation, getRepresentation, getRepresentations, getTermType, getUri, removeRepresentation, setLabel, setLabel, setTermType, setUri
addCredit, addCredit, addExtension, addExtension, addIdentifier, addIdentifier, addIdentifier, addRights, addSource, addSources, createNewSource, generateTitle, getCacheStrategy, getCredits, getCredits, getData, getExtensions, getExtensions, getExtensions, getExtensionsConcat, getExtensionsConcat, getFilteredExtensions, getIdentifiers, getIdentifiers, getIdentifiers, getLsid, getRights, getTitleCache, getTruncatedCache, hasEmptyTitleCache, hasExtension, hasExtension, initListener, isProtectedTitleCache, removeCredit, removeCredit, removeExtension, removeIdentifier, removeIdentifier, removeRights, replaceCredit, replaceIdentifier, resetTitleCache, setCacheStrategy, setLsid, setProtectedTitleCache, setTitleCache, setTitleCache, updateCaches, updateCaches
addAggregationSource, addImportSource, addPrimaryTaxonomicSource, addPrimaryTaxonomicSource, addSource, addSource, 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, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isBlank, isInstanceOf, isNotBlank, isPersited, removeFromSetWithChangeEvent, removePropertyChangeListener, removePropertyChangeListener, replaceInList, setCreated, setCreatedBy, setId, setNewEntityListener, setUuid
finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid
checkTermTypeEqualOrDescendant, checkTermTypeNull, checkTermTypes
removeSources
addAggregationSource, addImportSource, addPrimaryTaxonomicSource, addPrimaryTaxonomicSource, addSource, addSource, getSources, removeSource
addAnnotation, addMarker, getAnnotations, getMarkers, getMarkers, hasMarker, hasMarker, markerValue, removeAnnotation, removeMarker, removeMarker
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
getCreated, getCreatedBy, getId, getUuid, isInstanceOf, isPersited, setCreated, setCreatedBy, setId, setUuid
public static final java.util.UUID uuidTdwgAreaVocabulary
public static final java.util.UUID uuidContinentVocabulary
public static final java.util.UUID uuidWaterbodyVocabulary
@Deprecated protected NamedArea()
protected NamedArea(java.lang.String description, java.lang.String label, java.lang.String labelAbbrev)
public static final NamedArea ARCTICOCEAN()
public static final NamedArea ATLANTICOCEAN()
public static final NamedArea PACIFICOCEAN()
public static final NamedArea INDIANOCEAN()
public static final NamedArea SOUTHERNOCEAN()
public static final NamedArea MEDITERRANEANSEA()
public static final NamedArea BLACKSEA()
public static final NamedArea CASPIANSEA()
public static final NamedArea REDSEA()
public static final NamedArea PERSIANGULF()
public static NamedArea NewInstance()
public static NamedArea NewInstance(java.lang.String description, java.lang.String label, java.lang.String labelAbbrev)
public NamedAreaType getType()
public void setType(NamedAreaType type)
public NamedAreaLevel getLevel()
public void setLevel(NamedAreaLevel level)
public TimePeriod getValidPeriod()
public void setValidPeriod(TimePeriod validPeriod)
public Media getShape()
public void setShape(Media shape)
public java.util.Set<Country> getCountries()
public void addCountry(Country country)
public void removeCountry(Country country)
public Point getPointApproximation()
public void setPointApproximation(Point pointApproximation)
public NamedArea getKindOf()
ISimpleTerm
this
termgetKindOf
in interface ISimpleTerm<NamedArea>
getKindOf
in class DefinedTermBase<NamedArea>
public void setKindOf(NamedArea kindOf)
setKindOf
in class DefinedTermBase<NamedArea>
public NamedArea getPartOf()
IDefinedTerm
this
term
Discuss: move to ISimpleTerm
?getPartOf
in interface IDefinedTerm<NamedArea>
getPartOf
in class DefinedTermBase<NamedArea>
IDefinedTerm.getIncludes()
@Deprecated public NamedArea getPartOfWorkaround()
public void setPartOf(NamedArea partOf)
setPartOf
in class DefinedTermBase<NamedArea>
DefinedTermBase.getPartOf()
public java.util.Set<NamedArea> getGeneralizationOf()
ISimpleTerm
this
term.getGeneralizationOf
in interface ISimpleTerm<NamedArea>
getGeneralizationOf
in class DefinedTermBase<NamedArea>
protected void setGeneralizationOf(java.util.Set<NamedArea> value)
setGeneralizationOf
in class DefinedTermBase<NamedArea>
public java.util.Set<NamedArea> getIncludes()
IDefinedTerm
this
term
Discuss: move to ISimpleTerm
?
FIXME getIncludes(): Hibernate returns this as a collection of CGLibProxy$$DefinedTermBase objects
which can't be cast to instances of T - can we explicitly initialize these terms using
Hibernate.initialize() or ( ( PersistentCollection ) proxy ).forceInitialization(),
does this imply a distinct load, and find methods in the dao?getIncludes
in interface IDefinedTerm<NamedArea>
getIncludes
in class DefinedTermBase<NamedArea>
IDefinedTerm.getPartOf()
protected void setIncludes(java.util.Set<NamedArea> includes)
setIncludes
in class DefinedTermBase<NamedArea>
DefinedTermBase.getIncludes()
public NamedArea readCsvLine(java.lang.Class<NamedArea> termClass, java.util.List<java.lang.String> csvLine, TermType termType, java.util.Map<java.util.UUID,DefinedTermBase> terms, boolean abbrevAsId)
ILoadableTerm
term
with contents from a csvLine. If the csvLine represents the default language
the csvLine attributes are merged into the existing default language and the default Language is returned.readCsvLine
in interface ILoadableTerm<NamedArea>
readCsvLine
in class DefinedTermBase<NamedArea>
protected int partOfCsvLineIndex()
DefinedTermBase
partOfCsvLineIndex
in class DefinedTermBase<NamedArea>
public void resetTerms()
resetTerms
in class DefinedTermBase<NamedArea>
@Deprecated protected static NamedArea getContinentByUuid(java.util.UUID uuid)
@Deprecated protected static NamedArea getWaterbodyByUuid(java.util.UUID uuid)
@Deprecated protected static NamedArea getTdwgTermByUuid(java.util.UUID uuid)
@Deprecated public static NamedArea getAreaByTdwgAbbreviation(java.lang.String tdwgAbbreviation)
@Deprecated public static NamedArea getAreaByTdwgLabel(java.lang.String tdwgLabel)
@Deprecated public static boolean isTdwgAreaLabel(java.lang.String label)
@Deprecated public static boolean isTdwgAreaAbbreviation(java.lang.String abbrev)
public static final NamedArea EUROPE()
public static final NamedArea AFRICA()
public static final NamedArea ASIA_TEMPERATE()
public static final NamedArea ASIA_TROPICAL()
public static final NamedArea NORTH_AMERICA()
public static final NamedArea ANTARCTICA()
public static final NamedArea SOUTH_AMERICA()
public static final NamedArea AUSTRALASIA()
public static final NamedArea PACIFIC()
protected void setDefaultContinentTerms(TermVocabulary<NamedArea> termVocabulary)
protected void setDefaultWaterbodyTerms(TermVocabulary<NamedArea> termVocabulary)
protected void setTdwgDefaultTerms(TermVocabulary<NamedArea> tdwgTermVocabulary)
protected static void addTdwgArea(NamedArea area)
protected void setDefaultTerms(TermVocabulary<NamedArea> termVocabulary)
setDefaultTerms
in class DefinedTermBase<NamedArea>
public static NamedArea.NamedAreaNode getHiearchieList(java.util.List<NamedArea> areaList)
DistributionTree
areaList
- public java.util.List<NamedArea> getAllLevelList()
public java.lang.String toString()
CdmBase
Object.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 interface IIdentifiableEntity
toString
in class TermBase
Object.toString()
public static java.lang.String labelWithLevel(NamedArea namedArea, Language language)
namedArea
- the arealanguage
- the preferred languagepublic java.lang.Object clone()
clone
in class OrderedTermBase<NamedArea>
OrderedTermBase.clone()
,
Object.clone()
Copyright © 2007-2020 EDIT. All Rights Reserved.