eu.etaxonomy.cdm.model.common
Class ExtensionType

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<ExtensionType>
                          extended by eu.etaxonomy.cdm.model.common.ExtensionType
All Implemented Interfaces:
IAnnotatableEntity, ICdmBase, IDefinedTerm<ExtensionType>, IIdentifiableEntity, ILoadableTerm<ExtensionType>, ISourceable<IdentifiableSource>, IVersionableEntity, Serializable, Cloneable

@Entity
@Indexed(index="eu.etaxonomy.cdm.model.common.DefinedTermBase")
public class ExtensionType
extends DefinedTermBase<ExtensionType>

Extension types similar to dynamically defined attributes. These are not data types, but rather content types like "DOI", "2nd nomenclatural reference", "3rd hybrid parent" or specific local identifiers.

Version:
1.0
Author:
m.doering
See Also:
Serialized Form

Field Summary
protected static Map<UUID,ExtensionType> termMap
           
 
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
  ExtensionType()
          Deprecated. 
protected ExtensionType(String term, String label, String labelAbbrev)
          Class constructor: creates a new extension type instance with a description (in the default language), a label and a label abbreviation.
 
Method Summary
static ExtensionType ABBREVIATION()
           
static ExtensionType AREA_OF_INTREREST()
           
static ExtensionType DOI()
           
protected static ExtensionType getTermByUuid(UUID uuid)
           
static ExtensionType INFORMAL_CATEGORY()
           
static ExtensionType NewInstance()
          Creates a new empty extension type instance.
static ExtensionType NewInstance(String term, String label, String labelAbbrev)
          Creates a new extension type instance with a description (in the default language), a label and a label abbreviation.
static ExtensionType NOMENCLATURAL_STANDARD()
           
static ExtensionType ORDER()
           
static ExtensionType RDF_FRAGMENT()
           
 void resetTerms()
           
protected  void setDefaultTerms(TermVocabulary<ExtensionType> termVocabulary)
           
static ExtensionType THIRD_HYBRID_PARENT()
           
static ExtensionType URL()
           
static ExtensionType XML_FRAGMENT()
           
 
Methods inherited from class eu.etaxonomy.cdm.model.common.DefinedTermBase
addGeneralizationOf, addIncludes, addMedia, clone, getByUuid, getGeneralizationOf, getIncludes, getKindOf, getMedia, getPartOf, getVocabulary, readCsvLine, readCsvLine, removeGeneralization, removeIncludes, removeMedia, setGeneralizationOf, setIncludes, setKindOf, setPartOf, setVocabulary, writeCsvLine
 
Methods inherited from class eu.etaxonomy.cdm.model.common.TermBase
addRepresentation, equals, getDescription, getDescription, getLabel, getLabel, getPreferredRepresentation, getPreferredRepresentation, getRepresentation, getRepresentations, getUri, removeRepresentation, setLabel, setLabel, setUri, toString
 
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

termMap

protected static Map<UUID,ExtensionType> termMap
Constructor Detail

ExtensionType

@Deprecated
public ExtensionType()
Deprecated. 


ExtensionType

protected ExtensionType(String term,
                        String label,
                        String labelAbbrev)
Class constructor: creates a new extension type instance with a description (in the default language), a label and a label abbreviation.

Parameters:
term - the string (in the default language) describing the new extension type to be created
label - the string identifying the new extension type to be created
labelAbbrev - the string identifying (in abbreviated form) the new extension type to be created
See Also:
ExtensionType()
Method Detail

NewInstance

public static ExtensionType NewInstance()
Creates a new empty extension type instance.

See Also:
NewInstance(String, String, String)

NewInstance

public static ExtensionType NewInstance(String term,
                                        String label,
                                        String labelAbbrev)
Creates a new extension type instance with a description (in the default language), a label and a label abbreviation.

Parameters:
term - the string (in the default language) describing the new extension type to be created
label - the string identifying the new extension type to be created
labelAbbrev - the string identifying (in abbreviated form) the new extension type to be created
See Also:
#readCsvLine(List, Language), NewInstance()

resetTerms

public void resetTerms()
Specified by:
resetTerms in class DefinedTermBase<ExtensionType>

getTermByUuid

protected static ExtensionType getTermByUuid(UUID uuid)

XML_FRAGMENT

public static final ExtensionType XML_FRAGMENT()

RDF_FRAGMENT

public static final ExtensionType RDF_FRAGMENT()

DOI

public static final ExtensionType DOI()

THIRD_HYBRID_PARENT

public static final ExtensionType THIRD_HYBRID_PARENT()

AREA_OF_INTREREST

public static final ExtensionType AREA_OF_INTREREST()

NOMENCLATURAL_STANDARD

public static final ExtensionType NOMENCLATURAL_STANDARD()

ABBREVIATION

public static final ExtensionType ABBREVIATION()

ORDER

public static final ExtensionType ORDER()

INFORMAL_CATEGORY

public static final ExtensionType INFORMAL_CATEGORY()

URL

public static final ExtensionType URL()

setDefaultTerms

protected void setDefaultTerms(TermVocabulary<ExtensionType> termVocabulary)
Specified by:
setDefaultTerms in class DefinedTermBase<ExtensionType>


Copyright © 2007-2013 EDIT. All Rights Reserved.