|
|||||||||
| 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
gov.nih.nlm.umls.meta.impl.AtomImpl
public class AtomImpl
Default 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 |
|---|
| Fields inherited from class gov.nih.nlm.umls.meta.impl.PlaceholderAtom |
|---|
aui, code, concept, cvf, ispref, key_fields, key_fields_flag, lat, lui, saui, scui, sdui, source, str, stt, sui, suppress, ts, tty |
| Constructor Summary | |
|---|---|
AtomImpl()
Instantiates an empty Atom. |
|
AtomImpl(Atom atom)
Instantiates an Atom 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. |
AtomAttribute[] |
getAttributes()
Returns the AtomAttributes. |
List |
getAttributesAsList()
Returns the AtomAttributes as a List. |
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. |
Definition[] |
getDefinitions()
Returns the Definitions. |
List |
getDefinitionsAsList()
Returns the Definitions as a List. |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
Locator[] |
getLocators()
Returns the Locators. |
List |
getLocatorsAsList()
Returns the Locators as a List. |
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. |
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 |
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 |
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 |
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 |
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 |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AtomImpl()
Atom.
public AtomImpl(Atom atom)
Atom from the specified Atom.
atom - Atom to be copied| Method Detail |
|---|
public Definition[] getDefinitions()
Definitions.
getDefinitions in interface AtomgetDefinitions in class PlaceholderAtomDefinition []public List getDefinitionsAsList()
Definitions as a List.
getDefinitionsAsList in interface AtomgetDefinitionsAsList in class PlaceholderAtomDefinitions as a Listpublic void addDefinition(Definition def)
Definition.
addDefinition in interface AtomaddDefinition in class PlaceholderAtomdef - the Definition to be addedpublic void removeDefinition(Definition def)
Definition.
removeDefinition in interface AtomremoveDefinition in class PlaceholderAtomdef - the Definition to be removedpublic void clearDefinitions()
Definitions.
clearDefinitions in interface AtomclearDefinitions in class PlaceholderAtompublic void setDefinitions(Definition[] defs)
Definitions with the ones in the specified array.
setDefinitions in interface AtomsetDefinitions in class PlaceholderAtomdefs - a Definition []public void setDefinitions(List defs)
Definitions with the ones in the specified List.
setDefinitions in interface AtomsetDefinitions in class PlaceholderAtomdefs - a List of Definitionspublic Locator[] getLocators()
Locators.
getLocators in interface AtomgetLocators in class PlaceholderAtomLocator []public List getLocatorsAsList()
Locators as a List.
getLocatorsAsList in interface AtomgetLocatorsAsList in class PlaceholderAtomLocators as a Listpublic void addLocator(Locator loc)
Locator.
addLocator in interface AtomaddLocator in class PlaceholderAtomloc - the Locator to be addedpublic void removeLocator(Locator loc)
Locator.
removeLocator in interface AtomremoveLocator in class PlaceholderAtomloc - the Locator to be removedpublic void clearLocators()
Locators.
clearLocators in interface AtomclearLocators in class PlaceholderAtompublic void setLocators(Locator[] locs)
Locators with the ones in the specified array.
setLocators in interface AtomsetLocators in class PlaceholderAtomlocs - a Locator []public void setLocators(List locs)
Locators with the ones in the specified List.
setLocators in interface AtomsetLocators in class PlaceholderAtomlocs - a List of Locatorspublic Relationship[] getRelationships()
Relationships.
getRelationships in interface AtomgetRelationships in class PlaceholderAtomRelationship []public List getRelationshipsAsList()
Relationships as a List.
getRelationshipsAsList in interface AtomgetRelationshipsAsList in class PlaceholderAtomRelationships as a Listpublic void addRelationship(Relationship rel)
Relationship.
addRelationship in interface AtomaddRelationship in class PlaceholderAtomrel - the Relationship to be addedpublic void removeRelationship(Relationship rel)
Relationship.
removeRelationship in interface AtomremoveRelationship in class PlaceholderAtomrel - the Relationship to be removedpublic void clearRelationships()
Relationships.
clearRelationships in interface AtomclearRelationships in class PlaceholderAtompublic void setRelationships(Relationship[] rels)
Relationships with the ones in the specified array.
setRelationships in interface AtomsetRelationships in class PlaceholderAtomrels - a Relationship []public void setRelationships(List rels)
Relationships of the ones in the specified List.
setRelationships in interface AtomsetRelationships in class PlaceholderAtomrels - a List of Relationshipspublic Coocurrence[] getCoocurrences()
Coocurrences.
getCoocurrences in interface AtomgetCoocurrences in class PlaceholderAtomCoocurrence []public List getCoocurrencesAsList()
Coocurrences as a List.
getCoocurrencesAsList in interface AtomgetCoocurrencesAsList in class PlaceholderAtomCoocurrences as a Listpublic void addCoocurrence(Coocurrence coc)
Coocurrence.
addCoocurrence in interface AtomaddCoocurrence in class PlaceholderAtomcoc - the Coocurrence to be addedpublic void removeCoocurrence(Coocurrence coc)
Coocurrence.
removeCoocurrence in interface AtomremoveCoocurrence in class PlaceholderAtomcoc - the Coocurrence to be removedpublic void clearCoocurrences()
Coocurrences.
clearCoocurrences in interface AtomclearCoocurrences in class PlaceholderAtompublic void setCoocurrences(Coocurrence[] cocs)
Coocurrences with the ones in the specified array.
setCoocurrences in interface AtomsetCoocurrences in class PlaceholderAtomcocs - a Coocurrence []public void setCoocurrences(List cocs)
Coocurrences with the ones in the specified List.
setCoocurrences in interface AtomsetCoocurrences in class PlaceholderAtomcocs - a List of Coocurrencespublic Context[] getContexts()
Contexts.
getContexts in interface AtomgetContexts in class PlaceholderAtomContext []public List getContextsAsList()
Contexts as a List.
getContextsAsList in interface AtomgetContextsAsList in class PlaceholderAtomContexts as a Listpublic void addContext(Context cxt)
Context.
addContext in interface AtomaddContext in class PlaceholderAtomcxt - the Context to be addedpublic void removeContext(Context cxt)
Context.
removeContext in interface AtomremoveContext in class PlaceholderAtomcxt - the Context to be removedpublic void clearContexts()
Contexts.
clearContexts in interface AtomclearContexts in class PlaceholderAtompublic void setContexts(Context[] cxts)
Contexts with the ones in the specified array.
setContexts in interface AtomsetContexts in class PlaceholderAtomcxts - a Context []public void setContexts(List cxts)
Contexts with the ones in the specified List.
setContexts in interface AtomsetContexts in class PlaceholderAtomcxts - a List of Contextspublic AtomAttribute[] getAttributes()
AtomAttributes.
getAttributes in interface AtomgetAttributes in class PlaceholderAtomAtomAttribute []public List getAttributesAsList()
AtomAttributes as a List.
getAttributesAsList in interface AtomgetAttributesAsList in class PlaceholderAtomAtomAttributes as a Listpublic void addAttribute(AtomAttribute att)
AtomAttribute.
addAttribute in interface AtomaddAttribute in class PlaceholderAtomatt - the AtomAttribute to be addedpublic void removeAttribute(AtomAttribute att)
AtomAttribute.
removeAttribute in interface AtomremoveAttribute in class PlaceholderAtomatt - the AtomAttribute to be removedpublic void clearAttributes()
AtomAttributes.
clearAttributes in interface AtomclearAttributes in class PlaceholderAtompublic void setAttributes(AtomAttribute[] atts)
AtomAttributes with the ones in the specified array.
setAttributes in interface AtomsetAttributes in class PlaceholderAtomatts - an AtomAttribute []public void setAttributes(List atts)
AtomAttributes with the ones in the specified List.
setAttributes in interface AtomsetAttributes in class PlaceholderAtomatts - a List of AtomAttributespublic Relationship[] getRelationships(Restrictor restrictor)
Atom's Relationships.
Restricts the return based on the given Restrictor.
getRelationships in interface AtomgetRelationships in class PlaceholderAtomrestrictor - Restrictor
public String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields in interface AtomgetKeyFields in class PlaceholderAtomString composed from the cui, aui, sui,
versioned source, tty, and code.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||