|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.meta.impl.PlaceholderConcept
gov.nih.nlm.umls.meta.impl.ConceptImpl
gov.nih.nlm.mms.browser.DisplayableConcept
public class DisplayableConcept
Extension of Concept to support a configurable display name.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface gov.nih.nlm.umls.meta.Concept |
|---|
Concept.ByCUIComparator, Concept.ByPreferredNameComparator |
| Field Summary |
|---|
| Fields inherited from class gov.nih.nlm.umls.meta.impl.ConceptImpl |
|---|
attributes, component_histories, contexts, coocurrences, definitions, locators, mappings, relationships, semantic_types |
| Fields inherited from class gov.nih.nlm.umls.meta.impl.PlaceholderConcept |
|---|
atoms, cui |
| Constructor Summary | |
|---|---|
DisplayableConcept(Concept concept,
Language lat,
double sortKey)
Instantiates a DisplayableConcept from the specified
Concept |
|
DisplayableConcept(Concept concept,
Language lat,
String sortKey)
Instantiates a DisplayableConcept from the specified
Concept |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Compares two DisplayableConcepts for order. |
String |
getPreferredName()
Returns the preferred name of the concept. |
String |
getSortKey()
Returns the score for this DisplayableConcept. |
void |
setSortKey(double sortKey)
Sets the score for this DisplayableConcept. |
void |
setSortKey(String sortKey)
Sets the score for this DisplayableConcept. |
String |
toString()
Returns a String representation of the concept based on the
prefererd name. |
| Methods inherited from class gov.nih.nlm.umls.meta.impl.PlaceholderConcept |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DisplayableConcept(Concept concept,
Language lat,
String sortKey)
DisplayableConcept from the specified
Concept
concept - the Conceptlat - language abbreviationsortKey - the sort key
public DisplayableConcept(Concept concept,
Language lat,
double sortKey)
DisplayableConcept from the specified
Concept
concept - the Conceptlat - language abbreviationsortKey - the sort key| Method Detail |
|---|
public String getSortKey()
DisplayableConcept.
DisplayableConceptpublic void setSortKey(String sortKey)
DisplayableConcept.
score - public void setSortKey(double sortKey)
DisplayableConcept.
score - public String getPreferredName()
public String toString()
String representation of the concept based on the
prefererd name.
toString in class ObjectString representation of the conceptpublic int compareTo(Object o)
DisplayableConcepts for order. Returns a negative
integer, zero, or a positive integer as the first
DisplayableConcept has a higher, equal, or lower score than
the second. If two DisplayableConcepts have the same score
then the method returns a negative integer, zero, or a positive integer
as the first one's CUI is less than, equal to, or greater than the
second.
compareTo in interface ComparablecompareTo in class PlaceholderConcepto1 - the first object to be compared.o2 - the second object to be compared.
ClassCastException - if the arguments' types prevent them from
being compared by this Comparator.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||