|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.meta.impl.PlaceholderAtom
public class PlaceholderAtom
Implementation of the Atom
interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface gov.nih.nlm.umls.meta.Atom |
|---|
Atom.AtomRankComparator, Atom.ByLanguageRestrictor |
| Nested classes/interfaces inherited from interface gov.nih.nlm.umls.meta.SourceElement |
|---|
SourceElement.BySourceComparator, SourceElement.BySourceRestrictor |
| Field Summary | |
|---|---|
protected String |
aui
|
protected String |
code
|
protected Concept |
concept
|
protected ContentView |
cvf
|
protected String |
ispref
|
protected String |
key_fields
|
protected boolean |
key_fields_flag
|
protected Language |
lat
|
protected String |
lui
|
protected String |
saui
|
protected String |
scui
|
protected String |
sdui
|
protected Source |
source
|
protected String |
str
|
protected StringType |
stt
|
protected String |
sui
|
protected Suppressible |
suppress
|
protected TermStatus |
ts
|
protected TermType |
tty
|
| Constructor Summary | |
|---|---|
PlaceholderAtom()
Instantiates an empty PlaceholderAtom. |
|
PlaceholderAtom(Atom atom)
Instantiates a PlaceholderAtom from the specified Atom. |
|
| Method Summary | |
|---|---|
void |
addAttribute(AtomAttribute att)
Adds the specified AtomAttribute. |
void |
addContext(Context cxt)
Adds the specified Context. |
void |
addCoocurrence(Coocurrence coc)
Adds the specified Coocurrence. |
void |
addDefinition(Definition def)
Adds the specified Definition. |
void |
addLocator(Locator loc)
Add the specified Locator. |
void |
addRelationship(Relationship rel)
Adds the specified Relationship. |
void |
clearAttributes()
Remove all AtomAttributes. |
void |
clearContexts()
Remove all Contexts. |
void |
clearCoocurrences()
Remove all Coocurrences. |
void |
clearDefinitions()
Remove all Definitions. |
void |
clearLocators()
Remove all Locators. |
void |
clearRelationships()
Remove all Relationships. |
int |
compareTo(Object o)
Compares this Atom to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
String |
getAtomIdentifier()
Returns the atom unique identifier (AUI) related to this Atom. |
AtomAttribute[] |
getAttributes()
Returns the AtomAttributes. |
List |
getAttributesAsList()
Returns the AtomAttributes as a List. |
String |
getAui()
Shorthand for getAtomIdentifier(). |
String |
getCode()
Return the code (CODE). |
Concept |
getConcept()
Returns the Concept that holds this Atom. |
ContentView |
getContentView()
Returns tbe ContentView definition for this Atom (CVF). |
Context[] |
getContexts()
Return the Contexts. |
List |
getContextsAsList()
Returns the Contexts as a List. |
Coocurrence[] |
getCoocurrences()
Returns the Coocurrences. |
List |
getCoocurrencesAsList()
Returns the Coocurrences as a List. |
ContentView |
getCvf()
Shorthand for getContentView(). |
Definition[] |
getDefinitions()
Returns the Definitions. |
List |
getDefinitionsAsList()
Returns the Definitions as a List. |
String |
getIspref()
Returns the flag indicating whether or not this Atom is
preferred (ISPREF). |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
Language |
getLanguage()
Returns the Language (LAT). |
Language |
getLat()
Shorthand for getLanguage(). |
Locator[] |
getLocators()
Returns the Locators. |
List |
getLocatorsAsList()
Returns the Locators as a List. |
String |
getLui()
Shorthand for getTermIdentifier(). |
String |
getName()
Sets the name (STR). |
Relationship[] |
getRelationships()
Returns the Relationships. |
Relationship[] |
getRelationships(Restrictor restrictor)
Returns a subset of this Atom's Relationships. |
List |
getRelationshipsAsList()
Returns the Relationships as a List. |
String |
getSaui()
Shorthand for getSourceAtomIdentifier(). |
String |
getScui()
Shorthand for getSourceConceptIdentifier(). |
String |
getSdui()
Shorthand for getSourceDescriptor(). |
Source |
getSource()
Returns the source for this Atom. |
String |
getSourceAtomIdentifier()
Returns the source asserted identifier (SAUI) for this Atom. |
String |
getSourceConceptIdentifier()
Returns the source attributed concept identifier (SCUI). |
String |
getSourceDescriptor()
Returns the source asserted descriptor (SDUI). |
String |
getStr()
Shorthand for getName(). |
String |
getStringIdentifier()
Return the string identifier (SUI). |
StringType |
getStringType()
Returns the StringType (STT). |
StringType |
getStt()
Shorthand for getStringType(). |
String |
getSui()
Shorthand for getStringIdentifier(). |
Suppressible |
getSuppress()
Returns the suppressibility value (SUPPRESS). |
String |
getTermIdentifier()
Returns the term identifier (LUI). |
TermStatus |
getTermStatus()
Returns the TermStatus (TS). |
TermType |
getTermType()
Returns the TermType (TTY). |
TermStatus |
getTs()
Shorthand for getTermStatus(). |
TermType |
getTty()
Shorthand for getTermType(). |
int |
hashCode()
Return a hash code based on key fields. |
boolean |
hasPreferredAtomIdentifier()
Indicates whether or not this Atom is the preferred atom identifier
for its Concept and string identifier. |
boolean |
hasPreferredAui()
Shorthand for hasPreferredAtomIdentifier(). |
boolean |
hasPreferredLui()
Shorthand for hasPreferredTermIdentifier() |
boolean |
hasPreferredStringIdentifier()
Indicates whether or not this atom has the preferred string identifier of the lexical class it is part of. |
boolean |
hasPreferredSui()
Shorthand for hasPreferredStringIdentifier(). |
boolean |
hasPreferredTermIdentifier()
Indicates whether or not this atom is part of the preferred lexical class of the Concept. |
boolean |
isObsolete()
Indicates whether or not this AtomImpl is obsolete. |
boolean |
isSuppressible()
Indicates whether or not this Atom is suppressible. |
void |
removeAttribute(AtomAttribute att)
Removes the specified AtomAttribute. |
void |
removeContext(Context cxt)
Removes the specified Context. |
void |
removeCoocurrence(Coocurrence coc)
Removes the specified Coocurrence. |
void |
removeDefinition(Definition def)
Remove the specified Definition. |
void |
removeLocator(Locator loc)
Removes the specified Locator. |
void |
removeRelationship(Relationship rel)
Removes the specified Relationship. |
void |
setAtomIdentifier(String aui)
Sets the atom unique identifier (AUI) related to this Atom. |
void |
setAttributes(AtomAttribute[] atts)
Replace AtomAttributes with the ones in the specified array. |
void |
setAttributes(List atts)
Replace AtomAttributes with the ones in the specified List. |
void |
setAui(String aui)
Shorthand for setAtomIdentifier(String). |
void |
setCode(String code)
Sets the code (CODE). |
void |
setConcept(Concept concept)
Sets the Concept that holds this Atom. |
void |
setContentView(ContentView cvf)
Sets tbe ContentView definition for this Atom (CVF). |
void |
setContexts(Context[] cxts)
Replace Contexts with the ones in the specified array. |
void |
setContexts(List cxts)
Replace Contexts with the ones in the specified List. |
void |
setCoocurrences(Coocurrence[] cocs)
Replace Coocurrences with the ones in the specified array. |
void |
setCoocurrences(List cocs)
Replace Coocurrences with the ones in the specified List. |
void |
setCvf(ContentView cvf)
Shorthand for setContentView(ContentView). |
void |
setDefinitions(Definition[] defs)
Replace Definitions with the ones in the specified array. |
void |
setDefinitions(List defs)
Replace Definitions with the ones in the specified List. |
void |
setIspref(String ispref)
Sets the flag indicating whether or not this Atom is
preferred (ISPREF). |
void |
setLanguage(Language lat)
Sets the Language (LAT). |
void |
setLat(Language lat)
Shorthand for setLanguage(Language). |
void |
setLocators(List locs)
Replace Locators with the ones in the specified List. |
void |
setLocators(Locator[] locs)
Replace Locators with the ones in the specified array. |
void |
setLui(String lui)
Shorthand for setTermIdentifier(String). |
void |
setName(String str)
Sets the name (STR). |
void |
setRelationships(List rels)
Replace Relationships of the ones in the specified List. |
void |
setRelationships(Relationship[] rels)
Replace Relationships with the ones in the specified array. |
void |
setSaui(String saui)
Shorthand for setSourceAtomIdentifier(String). |
void |
setScui(String scui)
Shorthand for setSourceConceptIdentifier(String). |
void |
setSdui(String sdui)
Shorthand for setSourceDescriptor(String). |
void |
setSource(Source source)
Sets the source for this Atom. |
void |
setSourceAtomIdentifier(String saui)
Sets the source asserted identifier (SAUI) for this Atom. |
void |
setSourceConceptIdentifier(String scui)
Sets the source attributed concept identifier (SCUI). |
void |
setSourceDescriptor(String sdui)
Sets the source asserted descriptor (SDUI). |
void |
setStr(String str)
Shorthand for setName(String). |
void |
setStringIdentifier(String sui)
Sets the string identifier (SUI). |
void |
setStringType(StringType stt)
Sets the StringType (STT). |
void |
setStt(StringType stt)
Shorthand for setStringType(StringType). |
void |
setSui(String sui)
Shorthand for setStringIdentifier(String). |
void |
setSuppress(Suppressible suppress)
Sets the suppressibility value (SUPPRESS). |
void |
setTermIdentifier(String lui)
Sets the term identifier (LUI). |
void |
setTermStatus(TermStatus ts)
Sets the TermStatus (TS). |
void |
setTermType(TermType tty)
Sets the TermType (TTY). |
void |
setTs(TermStatus ts)
Shorthand for setTermStatus(TermStatus). |
void |
setTty(TermType tty)
Shorthand for setTermType(TermType). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Concept concept
protected TermType tty
protected Language lat
protected TermStatus ts
protected String lui
protected StringType stt
protected String sui
protected String str
protected String saui
protected String scui
protected String sdui
protected String code
protected String aui
protected Suppressible suppress
protected String ispref
protected Source source
protected ContentView cvf
protected boolean key_fields_flag
protected String key_fields
| Constructor Detail |
|---|
public PlaceholderAtom()
PlaceholderAtom.
public PlaceholderAtom(Atom atom)
PlaceholderAtom from the specified Atom.
atom - Atom to be copied| Method Detail |
|---|
public Concept getConcept()
Concept that holds this Atom.
getConcept in interface ConceptElementConcept that holds this Atompublic void setConcept(Concept concept)
Concept that holds this Atom.
setConcept in interface ConceptElementconcept - the Concept that holds this Atompublic TermType getTermType()
TermType (TTY).
getTermType in interface AtomTermTypepublic TermType getTty()
getTermType().
getTty in interface AtomTermTypepublic void setTermType(TermType tty)
TermType (TTY).
setTermType in interface Atomtty - the TermTypepublic void setTty(TermType tty)
setTermType(TermType).
setTty in interface Atomtty - the TermTypepublic Language getLanguage()
Language (LAT).
getLanguage in interface AtomLanguagepublic Language getLat()
getLanguage().
getLat in interface AtomLanguagepublic void setLanguage(Language lat)
Language (LAT).
setLanguage in interface Atomlat - the Languagepublic void setLat(Language lat)
setLanguage(Language).
setLat in interface Atomlat - the Languagepublic boolean hasPreferredTermIdentifier()
Concept. In other words, does this Atom have
the same LUI as the preferred Atom of the Concept.
hasPreferredTermIdentifier in interface Atomtrue if so, false otherwisepublic boolean hasPreferredLui()
hasPreferredTermIdentifier()
hasPreferredLui in interface Atomtrue if so, false otherwisepublic TermStatus getTermStatus()
TermStatus (TS).
getTermStatus in interface AtomTermStatuspublic TermStatus getTs()
getTermStatus().
getTs in interface AtomTermStatuspublic void setTermStatus(TermStatus ts)
TermStatus (TS).
setTermStatus in interface Atomts - the TermStatuspublic void setTs(TermStatus ts)
setTermStatus(TermStatus).
setTs in interface Atomts - the TermStatuspublic String getLui()
getTermIdentifier().
getLui in interface Atompublic void setLui(String lui)
setTermIdentifier(String).
setLui in interface Atomlui - the LUIpublic String getTermIdentifier()
getTermIdentifier in interface Atompublic void setTermIdentifier(String lui)
setTermIdentifier in interface Atomlui - the LUIpublic boolean hasPreferredStringIdentifier()
Atom have
the same SUI as the preferred Atom of the lexical class.
hasPreferredStringIdentifier in interface Atomtrue if so, false otherwisepublic boolean hasPreferredSui()
hasPreferredStringIdentifier().
hasPreferredSui in interface Atomtrue if so, false otherwisepublic StringType getStringType()
StringType (STT).
getStringType in interface AtomStringTypepublic StringType getStt()
getStringType().
getStt in interface AtomStringTypepublic void setStringType(StringType stt)
StringType (STT).
setStringType in interface Atomstt - the STTpublic void setStt(StringType stt)
setStringType(StringType).
setStt in interface Atomstt - the STTpublic String getSui()
getStringIdentifier().
getSui in interface Atompublic void setSui(String sui)
setStringIdentifier(String).
setSui in interface Atomsui - the SUIpublic String getStringIdentifier()
getStringIdentifier in interface Atompublic void setStringIdentifier(String sui)
setStringIdentifier in interface Atomsui - the SUIpublic String getName()
getName in interface Atompublic String getStr()
getName().
getStr in interface Atompublic void setName(String str)
setName in interface Atomstr - the namepublic void setStr(String str)
setName(String).
setStr in interface Atomstr - the namepublic Definition[] getDefinitions()
Definitions.
getDefinitions in interface AtomDefinition []public List getDefinitionsAsList()
Definitions as a List.
getDefinitionsAsList in interface AtomDefinitions as a Listpublic void addDefinition(Definition def)
Definition.
addDefinition in interface Atomdef - the Definition to be addedpublic void removeDefinition(Definition def)
Definition.
removeDefinition in interface Atomdef - the Definition to be removedpublic void clearDefinitions()
Definitions.
clearDefinitions in interface Atompublic void setDefinitions(Definition[] defs)
Definitions with the ones in the specified array.
setDefinitions in interface Atomdefs - a Definition []public void setDefinitions(List defs)
Definitions with the ones in the specified List.
setDefinitions in interface Atomdefs - a List of Definitionspublic Locator[] getLocators()
Locators.
getLocators in interface AtomLocator []public List getLocatorsAsList()
Locators as a List.
getLocatorsAsList in interface AtomLocators as a Listpublic void addLocator(Locator loc)
Locator.
addLocator in interface Atomloc - the Locator to be addedpublic void removeLocator(Locator loc)
Locator.
removeLocator in interface Atomloc - the Locator to be removedpublic void clearLocators()
Locators.
clearLocators in interface Atompublic void setLocators(Locator[] locs)
Locators with the ones in the specified array.
setLocators in interface Atomlocs - a Locator []public void setLocators(List locs)
Locators with the ones in the specified List.
setLocators in interface Atomlocs - a List of Locatorspublic Relationship[] getRelationships()
Relationships.
getRelationships in interface AtomRelationship []public List getRelationshipsAsList()
Relationships as a List.
getRelationshipsAsList in interface AtomRelationships as a Listpublic void addRelationship(Relationship rel)
Relationship.
addRelationship in interface Atomrel - the Relationship to be addedpublic void removeRelationship(Relationship rel)
Relationship.
removeRelationship in interface Atomrel - the Relationship to be removedpublic void clearRelationships()
Relationships.
clearRelationships in interface Atompublic void setRelationships(Relationship[] rels)
Relationships with the ones in the specified array.
setRelationships in interface Atomrels - a Relationship []public void setRelationships(List rels)
Relationships of the ones in the specified List.
setRelationships in interface Atomrels - a List of Relationshipspublic Coocurrence[] getCoocurrences()
Coocurrences.
getCoocurrences in interface AtomCoocurrence []public List getCoocurrencesAsList()
Coocurrences as a List.
getCoocurrencesAsList in interface AtomCoocurrences as a Listpublic void addCoocurrence(Coocurrence coc)
Coocurrence.
addCoocurrence in interface Atomcoc - the Coocurrence to be addedpublic void removeCoocurrence(Coocurrence coc)
Coocurrence.
removeCoocurrence in interface Atomcoc - the Coocurrence to be removedpublic void clearCoocurrences()
Coocurrences.
clearCoocurrences in interface Atompublic void setCoocurrences(Coocurrence[] cocs)
Coocurrences with the ones in the specified array.
setCoocurrences in interface Atomcocs - a Coocurrence []public void setCoocurrences(List cocs)
Coocurrences with the ones in the specified List.
setCoocurrences in interface Atomcocs - a List of Coocurrencespublic Context[] getContexts()
Contexts.
getContexts in interface AtomContext []public List getContextsAsList()
Contexts as a List.
getContextsAsList in interface AtomContexts as a Listpublic void addContext(Context cxt)
Context.
addContext in interface Atomcxt - the Context to be addedpublic void removeContext(Context cxt)
Context.
removeContext in interface Atomcxt - the Context to be removedpublic void clearContexts()
Contexts.
clearContexts in interface Atompublic void setContexts(Context[] cxts)
Contexts with the ones in the specified array.
setContexts in interface Atomcxts - a Context []public void setContexts(List cxts)
Contexts with the ones in the specified List.
setContexts in interface Atomcxts - a List of Contextspublic AtomAttribute[] getAttributes()
AtomAttributes.
getAttributes in interface AtomAtomAttribute []public List getAttributesAsList()
AtomAttributes as a List.
getAttributesAsList in interface AtomAtomAttributes as a Listpublic void addAttribute(AtomAttribute att)
AtomAttribute.
addAttribute in interface Atomatt - the AtomAttribute to be addedpublic void removeAttribute(AtomAttribute att)
AtomAttribute.
removeAttribute in interface Atomatt - the AtomAttribute to be removedpublic void clearAttributes()
AtomAttributes.
clearAttributes in interface Atompublic void setAttributes(AtomAttribute[] atts)
AtomAttributes with the ones in the specified array.
setAttributes in interface Atomatts - an AtomAttribute []public void setAttributes(List atts)
AtomAttributes with the ones in the specified List.
setAttributes in interface Atomatts - a List of AtomAttributespublic String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields in interface AtomString composed from the cui, aui, sui,
versioned source, tty, and code.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 an
Atom 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)
Atom 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 objectpublic String getSaui()
getSourceAtomIdentifier().
getSaui in interface Atompublic String getSourceAtomIdentifier()
Atom.
getSourceAtomIdentifier in interface Atompublic void setSourceAtomIdentifier(String saui)
Atom.
setSourceAtomIdentifier in interface Atomsaui - the SAUIpublic void setSaui(String saui)
setSourceAtomIdentifier(String).
setSaui in interface Atomsaui - the SAUIpublic String getSdui()
getSourceDescriptor().
getSdui in interface Atompublic String getSourceDescriptor()
getSourceDescriptor in interface Atompublic void setSourceDescriptor(String sdui)
setSourceDescriptor in interface Atomsdui - the SDUIpublic void setSdui(String sdui)
setSourceDescriptor(String).
setSdui in interface Atomsdui - the SDUIpublic String getScui()
getSourceConceptIdentifier().
getScui in interface Atompublic String getSourceConceptIdentifier()
getSourceConceptIdentifier in interface Atompublic void setScui(String scui)
setSourceConceptIdentifier(String).
setScui in interface Atomscui - the SCUIpublic void setSourceConceptIdentifier(String scui)
setSourceConceptIdentifier in interface Atomscui - the SCUIpublic String getCode()
getCode in interface Atompublic void setCode(String code)
setCode in interface Atomcode - the codepublic String getAui()
getAtomIdentifier().
getAui in interface Atompublic void setAui(String aui)
setAtomIdentifier(String).
setAui in interface Atomaui - the AUIpublic String getAtomIdentifier()
Atom.
getAtomIdentifier in interface Atompublic void setAtomIdentifier(String aui)
Atom.
setAtomIdentifier in interface Atomaui - the AUIpublic Source getSource()
Atom.
getSource in interface SourceElementSourcepublic void setSource(Source source)
Atom.
setSource in interface SourceElementsource - Sourcepublic Suppressible getSuppress()
getSuppress in interface SuppressibleElementSuppressible valuepublic boolean isSuppressible()
Atom is suppressible.
isSuppressible in interface SuppressibleElementtrue if suppressible,
false if not suppressiblepublic void setSuppress(Suppressible suppress)
setSuppress in interface SuppressibleElementsuppress - the Suppressible valuepublic String getIspref()
Atom is
preferred (ISPREF).
getIspref in interface AtomAtom is
preferredpublic void setIspref(String ispref)
Atom is
preferred (ISPREF).
setIspref in interface Atomispref - the flag indicating whether or not this Atom is
preferredpublic boolean hasPreferredAtomIdentifier()
Atom is the preferred atom identifier
for its Concept and string identifier.
hasPreferredAtomIdentifier in interface Atomtrue if so, false otherwisepublic boolean hasPreferredAui()
hasPreferredAtomIdentifier().
hasPreferredAui in interface Atomtrue if so, false otherwisepublic ContentView getContentView()
ContentView definition for this Atom (CVF).
getContentView in interface ContentViewElementContentView definitionpublic void setContentView(ContentView cvf)
ContentView definition for this Atom (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 Relationship[] getRelationships(Restrictor restrictor)
Atom's Relationships.
Restricts the return based on the given Restrictor.
getRelationships in interface Atomrestrictor - Restrictor
public boolean isObsolete()
AtomImpl is obsolete.
isObsolete in interface SuppressibleElementtrue if obsolete,
false if not obsolete
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||