|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.meta.impl.LocatorImpl
public class LocatorImpl
Default implementation of the Locator interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface gov.nih.nlm.umls.meta.AtomElement |
|---|
AtomElement.ByLanguageRestrictor, AtomElement.BySourceRestrictor |
| Nested classes/interfaces inherited from interface gov.nih.nlm.umls.meta.SourceElement |
|---|
SourceElement.BySourceComparator, SourceElement.BySourceRestrictor |
| Constructor Summary | |
|---|---|
LocatorImpl()
Instantiates an empty Locator. |
|
LocatorImpl(Locator loc)
Instantiates a Locator from the specified Locator. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Compares this Locator to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
Atom |
getAtom()
Returns the Atom related to this Locator. |
String |
getAttributeIdentifier()
Returns the unique identifier (ATUI). |
String |
getAtui()
Shorthand for getAttributeIdentifier(). |
Concept |
getConcept()
Returns the Concept that holds this Locator. |
ContentView |
getContentView()
Returns tbe ContentView definition for this Locator (CVF). |
ContentView |
getCvf()
Shorthand for getContentView(). |
String |
getExternalName()
Returns the actual name that occurs in the information source (SNA) if not otherwise present in the Metathesaurus. |
int |
getFr()
Shorthand for getFrequency(). |
int |
getFrequency()
Returns the frequency (FR). |
String |
getFrequencyMeaning()
Returns the meaning of the frequency (UN), if the frequency is set. |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
String |
getRecordIdentifier()
Returns the record identifier (SOUI) corresponding to this Locator
in the actual information source. |
String |
getSatui()
Shorthand for getSourceAttributeIdentifier(). |
String |
getSna()
Shorthand for getExternalName(). |
String |
getSoui()
Shorthand for getRecordIdentifier(). |
Source |
getSource()
Returns the source for this Locator. |
String |
getSourceAttributeIdentifier()
Returns the source asserted attribute identifier (SATUI). |
String |
getStringIdentifier()
Return the string identifier (SUI). |
String |
getSui()
Shorthand for getStringIdentifier(). |
String |
getUn()
Shorthand for getFrequencyMeaning(). |
int |
hashCode()
Return a hash code based on key fields. |
void |
setAtom(Atom atom)
Sets the Atom related to this Locator. |
void |
setAttributeIdentifier(String atui)
Sets the unique identifier (ATUI). |
void |
setAtui(String atui)
Shorthand for setAttributeIdentifier(String). |
void |
setConcept(Concept concept)
Sets the Concept that holds this Locator. |
void |
setContentView(ContentView cvf)
Sets tbe ContentView definition for this Locator (CVF). |
void |
setCvf(ContentView cvf)
Shorthand for setContentView(ContentView). |
void |
setExternalName(String sna)
Sets the actual name that occurs in the information source (SNA) if not otherwise present in the Metathesaurus. |
void |
setFr(int fr)
Shorthand for setFrequency(int). |
void |
setFrequency(int fr)
Sets the frequency (FR). |
void |
setFrequencyMeaning(String un)
Returns the meaning of the frequency (UN), if the frequency is set. |
void |
setRecordIdentifier(String soui)
Sets the record identifier (SOUI) corresponding to this Locator
in the actual information source. |
void |
setSatui(String satui)
Shorthand for setSourceAttributeIdentifier(String). |
void |
setSna(String sna)
Shorthand for setExternalName(String). |
void |
setSoui(String soui)
Shorthand for setRecordIdentifier(String). |
void |
setSource(Source source)
Sets the source for this Locator. |
void |
setSourceAttributeIdentifier(String satui)
Sets the source asserted attribute identifier (SATUI). |
void |
setStringIdentifier(String sui)
Sets the string identifier (SUI). |
void |
setSui(String sui)
Shorthand for setStringIdentifier(String). |
void |
setUn(String un)
Shorthand for setFrequencyMeaning(String). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocatorImpl()
Locator.
public LocatorImpl(Locator loc)
Locator from the specified Locator.
loc - Locator to be copied| Method Detail |
|---|
public Atom getAtom()
Atom related to this Locator.
getAtom in interface AtomElementAtom related to this Locatorpublic void setAtom(Atom atom)
Atom related to this Locator.
setAtom in interface AtomElementatom - the Atom related to this Locatorpublic String getAttributeIdentifier()
getAttributeIdentifier in interface AttributeElementpublic String getAtui()
getAttributeIdentifier().
getAtui in interface AttributeElementpublic void setAttributeIdentifier(String atui)
setAttributeIdentifier in interface AttributeElementatui - the ATUIpublic void setAtui(String atui)
setAttributeIdentifier(String).
setAtui in interface AttributeElementatui - the ATUIpublic String getSourceAttributeIdentifier()
getSourceAttributeIdentifier in interface AttributeElementpublic String getSatui()
getSourceAttributeIdentifier().
getSatui in interface AttributeElementpublic void setSourceAttributeIdentifier(String satui)
setSourceAttributeIdentifier in interface AttributeElementsatui - the SATUIpublic void setSatui(String satui)
setSourceAttributeIdentifier(String).
setSatui in interface AttributeElementsatui - the SATUIpublic Concept getConcept()
Concept that holds this Locator.
getConcept in interface ConceptElementConcept that holds this Locatorpublic void setConcept(Concept concept)
Concept that holds this Locator.
setConcept in interface ConceptElementconcept - the Concept that holds this Locatorpublic int getFrequency()
getFrequency in interface LocatorgetFrequencyMeaning()public int getFr()
getFrequency().
getFr in interface Locatorpublic void setFrequency(int fr)
setFrequency in interface Locatorfr - the frequencypublic void setFr(int fr)
setFrequency(int).
setFr in interface Locatorfr - the frequencypublic String getUn()
getFrequencyMeaning().
getUn in interface Locatorpublic String getFrequencyMeaning()
getFrequencyMeaning in interface Locatorpublic void setUn(String un)
setFrequencyMeaning(String).
setUn in interface Locatorun - the meaning of the frequency, if the frequency is set.public void setFrequencyMeaning(String un)
setFrequencyMeaning in interface Locatorun - the meaning of the frequency, if the frequency is set.public String getExternalName()
getExternalName in interface Locatorpublic String getSna()
getExternalName().
getSna in interface Locatorpublic void setExternalName(String sna)
setExternalName in interface Locatorsna - the actual name that occurs in the information sourcepublic void setSna(String sna)
setExternalName(String).
setSna in interface Locatorsna - the actual name that occurs in the information sourcepublic String getSoui()
getRecordIdentifier().
getSoui in interface Locatorpublic String getRecordIdentifier()
Locator
in the actual information source.
getRecordIdentifier in interface Locatorpublic void setSoui(String soui)
setRecordIdentifier(String).
setSoui in interface Locatorsoui - the record identifierpublic void setRecordIdentifier(String soui)
Locator
in the actual information source.
setRecordIdentifier in interface Locatorsoui - the record identifierpublic Source getSource()
Locator.
getSource in interface SourceElementSourcepublic void setSource(Source source)
Locator.
setSource in interface SourceElementsource - Sourcepublic String getSui()
getStringIdentifier().
getSui in interface Locatorpublic void setSui(String sui)
setStringIdentifier(String).
setSui in interface Locatorsui - the SUIpublic String getStringIdentifier()
getStringIdentifier in interface Locatorpublic void setStringIdentifier(String sui)
setStringIdentifier in interface Locatorsui - the SUIpublic ContentView getContentView()
ContentView definition for this Locator (CVF).
getContentView in interface ContentViewElementContentView definitionpublic void setContentView(ContentView cvf)
ContentView definition for this Locator (CVF).
setContentView in interface ContentViewElementcvf - the ContentView definitionpublic ContentView getCvf()
getContentView().
getCvf in interface ContentViewElementContentView definitionpublic void setCvf(ContentView cvf)
setContentView(ContentView).
setCvf in interface ContentViewElementcvf - the ContentView definitionpublic String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields in interface LocatorString composed from the cui, aui,
versioned source, fr, un, sui, sna, and soui.public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
true if the specified object is
equal to this object. The specified object must be a
Locator with matching key fields.
equals in class Objecto - an Object to compare against
true if Object o is equal
false otherwisepublic int compareTo(Object o)
Locator to another one. Results
are indeterminate if the specified parameter is not of the
same class.
compareTo in interface Comparableo - the Object to compare to
int representing the relative ordering
of this and the compare-to object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||