|
||||||||||
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
Default implementation of the Atom
interface.
Nested Class Summary |
Nested classes inherited from class gov.nih.nlm.umls.meta.Atom |
Atom.AtomRankComparator, Atom.ByLanguageRestrictor |
Nested classes inherited from class 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 AtomAttribute s. |
void |
clearContexts()
Remove all Context s. |
void |
clearCoocurrences()
Remove all Coocurrence s. |
void |
clearDefinitions()
Remove all Definition s. |
void |
clearLocators()
Remove all Locator s. |
void |
clearRelationships()
Remove all Relationship s. |
AtomAttribute[] |
getAttributes()
Returns the AtomAttribute s. |
List |
getAttributesAsList()
Returns the AtomAttribute s as a List . |
Context[] |
getContexts()
Return the Context s. |
List |
getContextsAsList()
Returns the Context s as a List . |
Coocurrence[] |
getCoocurrences()
Returns the Coocurrence s. |
List |
getCoocurrencesAsList()
Returns the Coocurrence s as a List . |
Definition[] |
getDefinitions()
Returns the Definition s. |
List |
getDefinitionsAsList()
Returns the Definition s as a List . |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
Locator[] |
getLocators()
Returns the Locator s. |
List |
getLocatorsAsList()
Returns the Locator s as a List . |
Relationship[] |
getRelationships()
Returns the Relationship s. |
Relationship[] |
getRelationships(Restrictor restrictor)
Returns a subset of this Atom 's Relationship s. |
List |
getRelationshipsAsList()
Returns the Relationship s 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 AtomAttribute s with the ones in the specified array. |
void |
setAttributes(List atts)
Replace AtomAttribute s with the ones in the specified List . |
void |
setContexts(Context[] cxts)
Replace Context s with the ones in the specified array. |
void |
setContexts(List cxts)
Replace Context s with the ones in the specified List . |
void |
setCoocurrences(Coocurrence[] cocs)
Replace Coocurrence s with the ones in the specified array. |
void |
setCoocurrences(List cocs)
Replace Coocurrence s with the ones in the specified List . |
void |
setDefinitions(Definition[] defs)
Replace Definition s with the ones in the specified array. |
void |
setDefinitions(List defs)
Replace Definition s with the ones in the specified List . |
void |
setLocators(List locs)
Replace Locator s with the ones in the specified List . |
void |
setLocators(Locator[] locs)
Replace Locator s with the ones in the specified array. |
void |
setRelationships(List rels)
Replace Relationship s of the ones in the specified List . |
void |
setRelationships(Relationship[] rels)
Replace Relationship s 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 copiedMethod Detail |
public Definition[] getDefinitions()
Definition
s.
getDefinitions
in interface Atom
getDefinitions
in class PlaceholderAtom
Definition
[]
public List getDefinitionsAsList()
Definition
s as a List
.
getDefinitionsAsList
in interface Atom
getDefinitionsAsList
in class PlaceholderAtom
Definition
s as a List
public void addDefinition(Definition def)
Definition
.
addDefinition
in interface Atom
addDefinition
in class PlaceholderAtom
def
- the Definition
to be addedpublic void removeDefinition(Definition def)
Definition
.
removeDefinition
in interface Atom
removeDefinition
in class PlaceholderAtom
def
- the Definition
to be removedpublic void clearDefinitions()
Definition
s.
clearDefinitions
in interface Atom
clearDefinitions
in class PlaceholderAtom
public void setDefinitions(Definition[] defs)
Definition
s with the ones in the specified array.
setDefinitions
in interface Atom
setDefinitions
in class PlaceholderAtom
defs
- a Definition
[]
public void setDefinitions(List defs)
Definition
s with the ones in the specified List
.
setDefinitions
in interface Atom
setDefinitions
in class PlaceholderAtom
defs
- a List
of Definition
spublic Locator[] getLocators()
Locator
s.
getLocators
in interface Atom
getLocators
in class PlaceholderAtom
Locator
[]
public List getLocatorsAsList()
Locator
s as a List
.
getLocatorsAsList
in interface Atom
getLocatorsAsList
in class PlaceholderAtom
Locator
s as a List
public void addLocator(Locator loc)
Locator
.
addLocator
in interface Atom
addLocator
in class PlaceholderAtom
loc
- the Locator
to be addedpublic void removeLocator(Locator loc)
Locator
.
removeLocator
in interface Atom
removeLocator
in class PlaceholderAtom
loc
- the Locator
to be removedpublic void clearLocators()
Locator
s.
clearLocators
in interface Atom
clearLocators
in class PlaceholderAtom
public void setLocators(Locator[] locs)
Locator
s with the ones in the specified array.
setLocators
in interface Atom
setLocators
in class PlaceholderAtom
locs
- a Locator
[]
public void setLocators(List locs)
Locator
s with the ones in the specified List
.
setLocators
in interface Atom
setLocators
in class PlaceholderAtom
locs
- a List
of Locator
spublic Relationship[] getRelationships()
Relationship
s.
getRelationships
in interface Atom
getRelationships
in class PlaceholderAtom
Relationship
[]
public List getRelationshipsAsList()
Relationship
s as a List
.
getRelationshipsAsList
in interface Atom
getRelationshipsAsList
in class PlaceholderAtom
Relationship
s as a List
public void addRelationship(Relationship rel)
Relationship
.
addRelationship
in interface Atom
addRelationship
in class PlaceholderAtom
rel
- the Relationship
to be addedpublic void removeRelationship(Relationship rel)
Relationship
.
removeRelationship
in interface Atom
removeRelationship
in class PlaceholderAtom
rel
- the Relationship
to be removedpublic void clearRelationships()
Relationship
s.
clearRelationships
in interface Atom
clearRelationships
in class PlaceholderAtom
public void setRelationships(Relationship[] rels)
Relationship
s with the ones in the specified array.
setRelationships
in interface Atom
setRelationships
in class PlaceholderAtom
rels
- a Relationship
[]
public void setRelationships(List rels)
Relationship
s of the ones in the specified List
.
setRelationships
in interface Atom
setRelationships
in class PlaceholderAtom
rels
- a List
of Relationship
spublic Coocurrence[] getCoocurrences()
Coocurrence
s.
getCoocurrences
in interface Atom
getCoocurrences
in class PlaceholderAtom
Coocurrence
[]
public List getCoocurrencesAsList()
Coocurrence
s as a List
.
getCoocurrencesAsList
in interface Atom
getCoocurrencesAsList
in class PlaceholderAtom
Coocurrence
s as a List
public void addCoocurrence(Coocurrence coc)
Coocurrence
.
addCoocurrence
in interface Atom
addCoocurrence
in class PlaceholderAtom
coc
- the Coocurrence
to be addedpublic void removeCoocurrence(Coocurrence coc)
Coocurrence
.
removeCoocurrence
in interface Atom
removeCoocurrence
in class PlaceholderAtom
coc
- the Coocurrence
to be removedpublic void clearCoocurrences()
Coocurrence
s.
clearCoocurrences
in interface Atom
clearCoocurrences
in class PlaceholderAtom
public void setCoocurrences(Coocurrence[] cocs)
Coocurrence
s with the ones in the specified array.
setCoocurrences
in interface Atom
setCoocurrences
in class PlaceholderAtom
cocs
- a Coocurrence
[]
public void setCoocurrences(List cocs)
Coocurrence
s with the ones in the specified List
.
setCoocurrences
in interface Atom
setCoocurrences
in class PlaceholderAtom
cocs
- a List
of Coocurrence
spublic Context[] getContexts()
Context
s.
getContexts
in interface Atom
getContexts
in class PlaceholderAtom
Context
[]
public List getContextsAsList()
Context
s as a List
.
getContextsAsList
in interface Atom
getContextsAsList
in class PlaceholderAtom
Context
s as a List
public void addContext(Context cxt)
Context
.
addContext
in interface Atom
addContext
in class PlaceholderAtom
cxt
- the Context
to be addedpublic void removeContext(Context cxt)
Context
.
removeContext
in interface Atom
removeContext
in class PlaceholderAtom
cxt
- the Context
to be removedpublic void clearContexts()
Context
s.
clearContexts
in interface Atom
clearContexts
in class PlaceholderAtom
public void setContexts(Context[] cxts)
Context
s with the ones in the specified array.
setContexts
in interface Atom
setContexts
in class PlaceholderAtom
cxts
- a Context
[]
public void setContexts(List cxts)
Context
s with the ones in the specified List
.
setContexts
in interface Atom
setContexts
in class PlaceholderAtom
cxts
- a List
of Context
spublic AtomAttribute[] getAttributes()
AtomAttribute
s.
getAttributes
in interface Atom
getAttributes
in class PlaceholderAtom
AtomAttribute
[]
public List getAttributesAsList()
AtomAttribute
s as a List
.
getAttributesAsList
in interface Atom
getAttributesAsList
in class PlaceholderAtom
AtomAttribute
s as a List
public void addAttribute(AtomAttribute att)
AtomAttribute
.
addAttribute
in interface Atom
addAttribute
in class PlaceholderAtom
att
- the AtomAttribute
to be addedpublic void removeAttribute(AtomAttribute att)
AtomAttribute
.
removeAttribute
in interface Atom
removeAttribute
in class PlaceholderAtom
att
- the AtomAttribute
to be removedpublic void clearAttributes()
AtomAttribute
s.
clearAttributes
in interface Atom
clearAttributes
in class PlaceholderAtom
public void setAttributes(AtomAttribute[] atts)
AtomAttribute
s with the ones in the specified array.
setAttributes
in interface Atom
setAttributes
in class PlaceholderAtom
atts
- an AtomAttribute
[]
public void setAttributes(List atts)
AtomAttribute
s with the ones in the specified List
.
setAttributes
in interface Atom
setAttributes
in class PlaceholderAtom
atts
- a List
of AtomAttribute
spublic Relationship[] getRelationships(Restrictor restrictor)
Atom
's Relationship
s.
Restricts the return based on the given Restrictor
.
getRelationships
in interface Atom
getRelationships
in class PlaceholderAtom
restrictor
- Restrictor
public String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields
in interface Atom
getKeyFields
in class PlaceholderAtom
String
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 |