@Entity public abstract class OrderedTermBase<T extends OrderedTermBase<?>> extends DefinedTermBase<T>
Modifier and Type | Field and Description |
---|---|
protected int |
orderIndex |
partOf, vocabulary
cacheStrategy, NOT_PROTECTED, PROTECTED, protectedTitleCache, titleCache
annotations, markers
CLOB_LENGTH, uuid
Modifier | Constructor and Description |
---|---|
protected |
OrderedTermBase()
Deprecated.
|
protected |
OrderedTermBase(TermType type) |
|
OrderedTermBase(TermType type,
java.lang.String description,
java.lang.String label,
java.lang.String labelAbbrev) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clones this OrderedTermBase.
|
int |
compareTo(T orderedTerm)
Compares this OrderedTermBase with the specified OrderedTermBase for
order.
|
protected boolean |
decreaseIndex(OrderedTermVocabulary vocabulary)
Deprecated.
To be used only by OrderedTermVocabulary
|
T |
getNextHigherTerm() |
T |
getNextLowerTerm() |
int |
getOrderIndex()
Higher ordered terms have a lower order index,
lower ordered terms have a higher order index:
|
protected boolean |
incrementIndex(OrderedTermVocabulary vocabulary)
Deprecated.
To be used only by OrderedTermVocabulary
|
boolean |
isHigher(T orderedTerm)
If this term is higher than the parameter term, true is returned, else false.
|
boolean |
isLower(T orderedTerm)
If this term is lower than the parameter term, true is returned, else false.
|
protected int |
performCompareTo(T orderedTerm,
boolean skipVocabularyCheck)
Compares this OrderedTermBase with the specified OrderedTermBase for
order.
|
addGeneralizationOf, addIncludes, addMedia, getByUuid, getCacher, getGeneralizationOf, getGeneralizationOf, getIdInVocabulary, getIncludes, getKindOf, getMedia, getPartOf, getSymbol, getSymbol2, getTermByClassAndUUID, getVocabulary, isKindOf, partOfCsvLineIndex, readCsvLine, readCsvLine, readIsPartOf, removeGeneralization, removeIncludes, removeMedia, resetTerms, setCacher, setDefaultTerms, setGeneralizationOf, setIdInVocabulary, setIncludes, setKindOf, setPartOf, setSymbol, setSymbol2, setVocabulary, writeCsvLine
addRepresentation, getDescription, getDescription, getLabel, getLabel, getPreferredRepresentation, getPreferredRepresentation, getRepresentation, getRepresentations, getTermType, getUri, removeRepresentation, setLabel, setLabel, setTermType, setUri, toString
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
@Deprecated protected OrderedTermBase()
protected OrderedTermBase(TermType type)
public OrderedTermBase(TermType type, java.lang.String description, java.lang.String label, java.lang.String labelAbbrev)
public int getOrderIndex()
a.oderIndex < b.oderIndex : a > b
public int compareTo(T orderedTerm)
null
the
Note: The compare logic of this method might appear to be inverse
to the one mentioned in
Comparable.compareTo(java.lang.Object)
. This is, because the logic here
is that the lower the orderIndex the higher the term. E.g. the very high Rank
Kingdom may have an orderIndex close to 1.
compareTo
in interface java.lang.Comparable<T extends OrderedTermBase<?>>
compareTo
in class DefinedTermBase<T extends OrderedTermBase<?>>
orderedTerm
- the OrderedTermBase to be comparedjava.lang.NullPointerException
- if the specified object is nullprotected int performCompareTo(T orderedTerm, boolean skipVocabularyCheck)
Note: The compare logic of this method is the inverse logic
of the the one implemented in
Comparable.compareTo(java.lang.Object)
orderedTerm
- the OrderedTermBase to be comparedskipVocabularyCheck
- whether to skip checking if both terms to compare are in the
same vocabularyjava.lang.NullPointerException
- if the specified object is nullpublic boolean isLower(T orderedTerm)
orderedTerm
- public boolean isHigher(T orderedTerm)
orderedTerm
- @Deprecated protected boolean decreaseIndex(OrderedTermVocabulary vocabulary)
@Deprecated protected boolean incrementIndex(OrderedTermVocabulary vocabulary)
public T getNextHigherTerm()
public T getNextLowerTerm()
public java.lang.Object clone()
clone
in class DefinedTermBase<T extends OrderedTermBase<?>>
DefinedTermBase.clone()
,
Object.clone()
Copyright © 2007-2020 EDIT. All Rights Reserved.