gov.nih.nlm.umls.meta
Interface AttributeContext

All Superinterfaces:
Comparable, SourceElement
All Known Implementing Classes:
AttributeContextImpl

public interface AttributeContext
extends Comparable, SourceElement

Represents information attributes of a Source and code within a StringAttribute.

Following is a UML Class diagram showing the neighborhood around AttributeContext

Author:
Brian Carlsen, Deborah Shapiro
See Also:
StringAttribute

Nested Class Summary
 
Nested classes/interfaces inherited from interface gov.nih.nlm.umls.meta.SourceElement
SourceElement.BySourceComparator, SourceElement.BySourceRestrictor
 
Method Summary
 void addAttributeValue(AttributeValue av)
          Adds the specified AttributeValue.
 void clearAttributeValues()
          Removes all AttributeValues.
 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.
 SourceIdentifierType getSourceIdentifierType()
          Returns the SourceIdentifierType for this AttributeContext.
 StringAttribute getStringAttribute()
          Returns the StringAttribute that holds this AttributeContext.
 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 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 interface java.lang.Comparable
compareTo
 
Methods inherited from interface gov.nih.nlm.umls.meta.SourceElement
getSource, setSource
 

Method Detail

getStringAttribute

StringAttribute getStringAttribute()
Returns the StringAttribute that holds this AttributeContext.

Returns:
the StringAttribute that holds this AttributeContext

setStringAttribute

void setStringAttribute(StringAttribute sa)
Sets the StringAttribute that holds this AttributeContext.

Parameters:
sa - the StringAttribute that holds this AttributeContext

getAtom

Atom getAtom()
Returns the Atom for this AttributeContext.

Returns:
Atom

setAtom

void setAtom(Atom string_source)
Sets the Atom for this AttributeContext.

Parameters:
string_source - Atom

getSourceIdentifierType

SourceIdentifierType getSourceIdentifierType()
Returns the SourceIdentifierType for this AttributeContext.

Returns:
SourceIdentifierType

setSourceIdentifierType

void setSourceIdentifierType(SourceIdentifierType source_id_type)
Sets the SourceIdentifierType for this AttributeContext.

Parameters:
source_id_type - SourceIdentifierType

getAttributeValues

AttributeValue[] getAttributeValues()
Returns all AttributeValues.

Returns:
a array of AttributeValues

getAttributeValuesAsList

List getAttributeValuesAsList()
Returns all AttributeValues as a List.

Returns:
a List of AttributeValues

addAttributeValue

void addAttributeValue(AttributeValue av)
Adds the specified AttributeValue.

Parameters:
av - the AttributeValue to be added

removeAttributeValue

void removeAttributeValue(AttributeValue av)
Removes the specified AttributeValue.

Parameters:
av - the AttributeValue to be removed

clearAttributeValues

void clearAttributeValues()
Removes all AttributeValues.


setAttributeValues

void setAttributeValues(AttributeValue[] avs)
Replaces the AttributeValues with the ones in the specified array.

Parameters:
avs - a AttributeValue[]

setAttributeValues

void setAttributeValues(List avs)
Replaces the AttributeValues with the ones in the specified List.

Parameters:
avs - a List of AttributeValues

getKeyFields

String getKeyFields()
Returns a String key which can be used by equals, compareTo, and hashCode methods.

Returns:
a String composed from key AttributeContext fields


Copyright ©2005