eu.etaxonomy.cdm.model.location
Class TdwgArea

java.lang.Object
  extended by eu.etaxonomy.cdm.model.common.CdmBase
      extended by eu.etaxonomy.cdm.model.common.VersionableEntity
          extended by eu.etaxonomy.cdm.model.common.AnnotatableEntity
              extended by eu.etaxonomy.cdm.model.common.IdentifiableEntity<IIdentifiableEntityCacheStrategy>
                  extended by eu.etaxonomy.cdm.model.common.TermBase
                      extended by eu.etaxonomy.cdm.model.common.DefinedTermBase<T>
                          extended by eu.etaxonomy.cdm.model.common.OrderedTermBase<NamedArea>
                              extended by eu.etaxonomy.cdm.model.location.NamedArea
                                  extended by eu.etaxonomy.cdm.model.location.TdwgArea
All Implemented Interfaces:
IAnnotatableEntity, ICdmBase, IDefinedTerm<NamedArea>, IIdentifiableEntity, ILoadableTerm<NamedArea>, ISourceable<IdentifiableSource>, IVersionableEntity, Serializable, Cloneable, Comparable<NamedArea>

@Entity
@Indexed(index="eu.etaxonomy.cdm.model.common.DefinedTermBase")
public class TdwgArea
extends NamedArea
implements Cloneable

Area terms according to the TDWG GeographicRegion vocabulary http://rs.tdwg.org/ontology/voc/GeographicRegion.rdf

Version:
1.0
Author:
a.mueller
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class eu.etaxonomy.cdm.model.location.NamedArea
NamedArea.LevelNode, NamedArea.NamedAreaNode
 
Field Summary
protected static Map<UUID,TdwgArea> termMap
           
static UUID uuidTdwgAreaVocabulary
           
 
Fields inherited from class eu.etaxonomy.cdm.model.common.OrderedTermBase
orderIndex
 
Fields inherited from class eu.etaxonomy.cdm.model.common.DefinedTermBase
partOf, vocabulary
 
Fields inherited from class eu.etaxonomy.cdm.model.common.IdentifiableEntity
cacheStrategy, NOT_PROTECTED, PROTECTED, protectedTitleCache, titleCache
 
Fields inherited from class eu.etaxonomy.cdm.model.common.AnnotatableEntity
annotations, markers
 
Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase
uuid
 
Constructor Summary
TdwgArea()
           
 
Method Summary
protected static void addTdwgArea(NamedArea area)
           
static NamedArea getAreaByTdwgAbbreviation(String tdwgAbbreviation)
          FIXME This class should really be refactored into an interface and service implementation, relying on TermVocabularyDao / service (Ben)
static NamedArea getAreaByTdwgLabel(String tdwgLabel)
          FIXME This class should really be refactored into an interface and service implementation, relying on TermVocabularyDao / service (Ben)
protected static TdwgArea getTermByUuid(UUID uuid)
           
static boolean isTdwgAreaAbbreviation(String abbrev)
           
static boolean isTdwgAreaLabel(String label)
           
 void resetTerms()
           
protected  void setDefaultTerms(TermVocabulary<NamedArea> termVocabulary)
           
 
Methods inherited from class eu.etaxonomy.cdm.model.location.NamedArea
addWaterbodyOrCountry, clone, getAllLevelList, getGeneralizationOf, getHiearchieList, getIncludes, getKindOf, getLevel, getPartOf, getPartOfWorkaround, getPointApproximation, getShape, getType, getValidPeriod, getWaterbodiesOrCountries, labelWithLevel, NewInstance, NewInstance, readCsvLine, removeWaterbodyOrCountry, setGeneralizationOf, setIncludes, setKindOf, setLevel, setPartOf, setPointApproximation, setShape, setType, setValidPeriod, toString
 
Methods inherited from class eu.etaxonomy.cdm.model.common.OrderedTermBase
compareTo, decreaseIndex, equals, getOrderIndex, incrementIndex, isHigher, isLower, performCompareTo
 
Methods inherited from class eu.etaxonomy.cdm.model.common.DefinedTermBase
addGeneralizationOf, addIncludes, addMedia, getByUuid, getMedia, getVocabulary, readCsvLine, removeGeneralization, removeIncludes, removeMedia, setVocabulary, writeCsvLine
 
Methods inherited from class eu.etaxonomy.cdm.model.common.TermBase
addRepresentation, getDescription, getDescription, getLabel, getLabel, getPreferredRepresentation, getPreferredRepresentation, getRepresentation, getRepresentations, getUri, removeRepresentation, setLabel, setLabel, setUri
 
Methods inherited from class eu.etaxonomy.cdm.model.common.IdentifiableEntity
addCredit, addCredit, addExtension, addExtension, addRights, addSource, addSource, compareTo, generateTitle, getCacheStrategy, getCredits, getCredits, getData, getExtensions, getExtensions, getExtensions, getLsid, getRights, getSources, getTitleCache, getTruncatedCache, initListener, isProtectedTitleCache, regenerateTitleCache, removeCredit, removeCredit, removeExtension, removeRights, removeSource, setCacheStrategy, setLsid, setProtectedTitleCache, setTitleCache, setTitleCache
 
Methods inherited from class eu.etaxonomy.cdm.model.common.AnnotatableEntity
addAnnotation, addMarker, getAnnotations, getMarkers, hasMarker, hasMarker, removeAnnotation, removeMarker
 
Methods inherited from class eu.etaxonomy.cdm.model.common.VersionableEntity
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface eu.etaxonomy.cdm.model.common.IDefinedTerm
getUuid
 
Methods inherited from interface eu.etaxonomy.cdm.model.common.IAnnotatableEntity
addAnnotation, addMarker, getAnnotations, getMarkers, hasMarker, hasMarker, removeAnnotation, removeMarker
 
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
 

Field Detail

uuidTdwgAreaVocabulary

public static final UUID uuidTdwgAreaVocabulary

termMap

protected static Map<UUID,TdwgArea> termMap
Constructor Detail

TdwgArea

public TdwgArea()
Method Detail

resetTerms

public void resetTerms()
Overrides:
resetTerms in class NamedArea

getTermByUuid

protected static TdwgArea getTermByUuid(UUID uuid)

getAreaByTdwgAbbreviation

public static NamedArea getAreaByTdwgAbbreviation(String tdwgAbbreviation)
FIXME This class should really be refactored into an interface and service implementation, relying on TermVocabularyDao / service (Ben)

Parameters:
tdwgAbbreviation -
Returns:

getAreaByTdwgLabel

public static NamedArea getAreaByTdwgLabel(String tdwgLabel)
FIXME This class should really be refactored into an interface and service implementation, relying on TermVocabularyDao / service (Ben)

Parameters:
tdwgLabel -
Returns:

isTdwgAreaLabel

public static boolean isTdwgAreaLabel(String label)

isTdwgAreaAbbreviation

public static boolean isTdwgAreaAbbreviation(String abbrev)

setDefaultTerms

protected void setDefaultTerms(TermVocabulary<NamedArea> termVocabulary)
Overrides:
setDefaultTerms in class NamedArea

addTdwgArea

protected static void addTdwgArea(NamedArea area)


Copyright © 2007-2013 EDIT. All Rights Reserved.