|
||||||||||
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
Default implementation of the Locator
interface.
Nested Class Summary |
Nested classes inherited from class gov.nih.nlm.umls.meta.AtomElement |
AtomElement.ByLanguageRestrictor, AtomElement.BySourceRestrictor |
Nested classes inherited from class 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 copiedMethod Detail |
public Atom getAtom()
Atom
related to this Locator
.
getAtom
in interface AtomElement
Atom
related to this Locator
public void setAtom(Atom atom)
Atom
related to this Locator
.
setAtom
in interface AtomElement
atom
- the Atom
related to this Locator
public String getAttributeIdentifier()
getAttributeIdentifier
in interface AttributeElement
public String getAtui()
getAttributeIdentifier()
.
getAtui
in interface AttributeElement
public void setAttributeIdentifier(String atui)
setAttributeIdentifier
in interface AttributeElement
atui
- the ATUIpublic void setAtui(String atui)
setAttributeIdentifier(String)
.
setAtui
in interface AttributeElement
atui
- the ATUIpublic String getSourceAttributeIdentifier()
getSourceAttributeIdentifier
in interface AttributeElement
public String getSatui()
getSourceAttributeIdentifier()
.
getSatui
in interface AttributeElement
public void setSourceAttributeIdentifier(String satui)
setSourceAttributeIdentifier
in interface AttributeElement
satui
- the SATUIpublic void setSatui(String satui)
setSourceAttributeIdentifier(String)
.
setSatui
in interface AttributeElement
satui
- the SATUIpublic Concept getConcept()
Concept
that holds this Locator
.
getConcept
in interface ConceptElement
Concept
that holds this Locator
public void setConcept(Concept concept)
Concept
that holds this Locator
.
setConcept
in interface ConceptElement
concept
- the Concept
that holds this Locator
public int getFrequency()
getFrequency
in interface Locator
getFrequencyMeaning()
public int getFr()
getFrequency()
.
getFr
in interface Locator
public void setFrequency(int fr)
setFrequency
in interface Locator
fr
- the frequencypublic void setFr(int fr)
setFrequency(int)
.
setFr
in interface Locator
fr
- the frequencypublic String getUn()
getFrequencyMeaning()
.
getUn
in interface Locator
public String getFrequencyMeaning()
getFrequencyMeaning
in interface Locator
public void setUn(String un)
setFrequencyMeaning(String)
.
setUn
in interface Locator
un
- the meaning of the frequency, if the frequency is set.public void setFrequencyMeaning(String un)
setFrequencyMeaning
in interface Locator
un
- the meaning of the frequency, if the frequency is set.public String getExternalName()
getExternalName
in interface Locator
public String getSna()
getExternalName()
.
getSna
in interface Locator
public void setExternalName(String sna)
setExternalName
in interface Locator
sna
- the actual name that occurs in the information sourcepublic void setSna(String sna)
setExternalName(String)
.
setSna
in interface Locator
sna
- the actual name that occurs in the information sourcepublic String getSoui()
getRecordIdentifier()
.
getSoui
in interface Locator
public String getRecordIdentifier()
Locator
in the actual information source.
getRecordIdentifier
in interface Locator
public void setSoui(String soui)
setRecordIdentifier(String)
.
setSoui
in interface Locator
soui
- the record identifierpublic void setRecordIdentifier(String soui)
Locator
in the actual information source.
setRecordIdentifier
in interface Locator
soui
- the record identifierpublic Source getSource()
Locator
.
getSource
in interface SourceElement
Source
public void setSource(Source source)
Locator
.
setSource
in interface SourceElement
source
- Source
public String getSui()
getStringIdentifier()
.
getSui
in interface Locator
public void setSui(String sui)
setStringIdentifier(String)
.
setSui
in interface Locator
sui
- the SUIpublic String getStringIdentifier()
getStringIdentifier
in interface Locator
public void setStringIdentifier(String sui)
setStringIdentifier
in interface Locator
sui
- the SUIpublic ContentView getContentView()
ContentView
definition for this Locator
(CVF).
getContentView
in interface ContentViewElement
ContentView
definitionpublic void setContentView(ContentView cvf)
ContentView
definition for this Locator
(CVF).
setContentView
in interface ContentViewElement
cvf
- the ContentView
definitionpublic ContentView getCvf()
getContentView()
.
getCvf
in interface ContentViewElement
ContentView
definitionpublic void setCvf(ContentView cvf)
setContentView(ContentView)
.
setCvf
in interface ContentViewElement
cvf
- the ContentView
definitionpublic String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields
in interface Locator
String
composed from the cui, aui,
versioned source, fr, un, sui, sna, and soui.public int hashCode()
public 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.
o
- 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 Comparable
o
- 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 |