|
|||||||||
| 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
public class AttributeContextImpl
Default implementation of the AttributeContext
interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface 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 AttributeValues. |
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 AttributeValues. |
List |
getAttributeValuesAsList()
Returns all AttributeValues 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 AttributeValues with the ones in the specified array. |
void |
setAttributeValues(List avs)
Replaces the AttributeValues 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 copied| Method Detail |
|---|
public StringAttribute getStringAttribute()
StringAttribute that holds this AttributeContext.
getStringAttribute in interface AttributeContextStringAttribute that holds this AttributeContextpublic void setStringAttribute(StringAttribute sa)
StringAttribute that holds this AttributeContext.
setStringAttribute in interface AttributeContextsa - the StringAttribute that holds this AttributeContextpublic Atom getAtom()
Atom for this AttributeContext.
getAtom in interface AttributeContextAtompublic void setAtom(Atom string_source)
Atom for this AttributeContext.
setAtom in interface AttributeContextstring_source - Atompublic SourceIdentifierType getSourceIdentifierType()
SourceIdentifierType for this AttributeContext.
getSourceIdentifierType in interface AttributeContextSourceIdentifierTypepublic void setSourceIdentifierType(SourceIdentifierType source_id_type)
SourceIdentifierType for this AttributeContext.
setSourceIdentifierType in interface AttributeContextsource_id_type - SourceIdentifierTypepublic Source getSource()
AttributeContext.
getSource in interface SourceElementSourcepublic void setSource(Source source)
AttributeContext.
setSource in interface SourceElementsource - Sourcepublic AttributeValue[] getAttributeValues()
AttributeValues.
getAttributeValues in interface AttributeContextAttributeValuespublic List getAttributeValuesAsList()
AttributeValues as a List.
getAttributeValuesAsList in interface AttributeContextList of AttributeValuespublic void addAttributeValue(AttributeValue av)
AttributeValue.
addAttributeValue in interface AttributeContextav - the AttributeValue to be addedpublic void removeAttributeValue(AttributeValue av)
AttributeValue.
removeAttributeValue in interface AttributeContextav - the AttributeValue to be removedpublic void clearAttributeValues()
AttributeValues.
clearAttributeValues in interface AttributeContextpublic void setAttributeValues(AttributeValue[] avs)
AttributeValues with the ones in the specified array.
setAttributeValues in interface AttributeContextavs - a AttributeValue[]public void setAttributeValues(List avs)
AttributeValues with the ones in the specified List.
setAttributeValues in interface AttributeContextavs - a List of AttributeValuespublic String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields in interface AttributeContextString composed from aui.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
AttributeContext 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)
AttributeContext 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 object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||