|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.umls.meta.impl.AttributeContextImpl
Default implementation of the AttributeContext
interface.
Nested Class Summary |
Nested classes inherited from class gov.nih.nlm.umls.meta.SourceElement |
SourceElement.BySourceComparator, SourceElement.BySourceRestrictor |
Constructor Summary | |
AttributeContextImpl()
Instantiates an empty AttributeContext . |
|
AttributeContextImpl(AttributeContext att)
Instantiates a AttributeContext from the specified AttributeContext . |
Method Summary | |
void |
addAttributeValue(AttributeValue av)
Adds the specified AttributeValue . |
void |
clearAttributeValues()
Removes all AttributeValue s. |
int |
compareTo(Object o)
Compares this AttributeContext to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
Atom |
getAtom()
Returns the Atom for this AttributeContext . |
AttributeValue[] |
getAttributeValues()
Returns all AttributeValue s. |
List |
getAttributeValuesAsList()
Returns all AttributeValue s as a List . |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
Source |
getSource()
Returns the source for this AttributeContext . |
SourceIdentifierType |
getSourceIdentifierType()
Returns the SourceIdentifierType for this AttributeContext . |
StringAttribute |
getStringAttribute()
Returns the StringAttribute that holds this AttributeContext . |
int |
hashCode()
Return a hash code based on key fields. |
void |
removeAttributeValue(AttributeValue av)
Removes the specified AttributeValue . |
void |
setAtom(Atom string_source)
Sets the Atom for this AttributeContext . |
void |
setAttributeValues(AttributeValue[] avs)
Replaces the AttributeValue s with the ones in the specified array. |
void |
setAttributeValues(List avs)
Replaces the AttributeValue s with the ones in the specified List . |
void |
setSource(Source source)
Sets the source for this AttributeContext . |
void |
setSourceIdentifierType(SourceIdentifierType source_id_type)
Sets the SourceIdentifierType for this AttributeContext . |
void |
setStringAttribute(StringAttribute sa)
Sets the StringAttribute that holds this AttributeContext . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AttributeContextImpl()
AttributeContext
.
public AttributeContextImpl(AttributeContext att)
AttributeContext
from the specified AttributeContext
.
att
- AttributeContext
to be copiedMethod Detail |
public StringAttribute getStringAttribute()
StringAttribute
that holds this AttributeContext
.
getStringAttribute
in interface AttributeContext
StringAttribute
that holds this AttributeContext
public void setStringAttribute(StringAttribute sa)
StringAttribute
that holds this AttributeContext
.
setStringAttribute
in interface AttributeContext
sa
- the StringAttribute
that holds this AttributeContext
public Atom getAtom()
Atom
for this AttributeContext
.
getAtom
in interface AttributeContext
Atom
public void setAtom(Atom string_source)
Atom
for this AttributeContext
.
setAtom
in interface AttributeContext
string_source
- Atom
public SourceIdentifierType getSourceIdentifierType()
SourceIdentifierType
for this AttributeContext
.
getSourceIdentifierType
in interface AttributeContext
SourceIdentifierType
public void setSourceIdentifierType(SourceIdentifierType source_id_type)
SourceIdentifierType
for this AttributeContext
.
setSourceIdentifierType
in interface AttributeContext
source_id_type
- SourceIdentifierType
public Source getSource()
AttributeContext
.
getSource
in interface SourceElement
Source
public void setSource(Source source)
AttributeContext
.
setSource
in interface SourceElement
source
- Source
public AttributeValue[] getAttributeValues()
AttributeValue
s.
getAttributeValues
in interface AttributeContext
AttributeValue
spublic List getAttributeValuesAsList()
AttributeValue
s as a List
.
getAttributeValuesAsList
in interface AttributeContext
List
of AttributeValue
spublic void addAttributeValue(AttributeValue av)
AttributeValue
.
addAttributeValue
in interface AttributeContext
av
- the AttributeValue
to be addedpublic void removeAttributeValue(AttributeValue av)
AttributeValue
.
removeAttributeValue
in interface AttributeContext
av
- the AttributeValue
to be removedpublic void clearAttributeValues()
AttributeValue
s.
clearAttributeValues
in interface AttributeContext
public void setAttributeValues(AttributeValue[] avs)
AttributeValue
s with the ones in the specified array.
setAttributeValues
in interface AttributeContext
avs
- a AttributeValue
[]
public void setAttributeValues(List avs)
AttributeValue
s with the ones in the specified List
.
setAttributeValues
in interface AttributeContext
avs
- a List
of AttributeValue
spublic String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields
in interface AttributeContext
String
composed from aui.public int hashCode()
public boolean equals(Object o)
true
if the specified object is
equal to this object. The specified object must be an
AttributeContext
with matching key fields.
o
- an Object
to compare against
true
if Object o is equal
false
otherwisepublic int compareTo(Object o)
AttributeContext
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 |