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 inherited from class 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

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

Returns:
the StringAttribute that holds this AttributeContext

setStringAttribute

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

Parameters:
sa - the StringAttribute that holds this AttributeContext

getAtom

public Atom getAtom()
Returns the Atom for this AttributeContext.

Returns:
Atom

setAtom

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

Parameters:
string_source - Atom

getSourceIdentifierType

public SourceIdentifierType getSourceIdentifierType()
Returns the SourceIdentifierType for this AttributeContext.

Returns:
SourceIdentifierType

setSourceIdentifierType

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

Parameters:
source_id_type - SourceIdentifierType

getAttributeValues

public AttributeValue[] getAttributeValues()
Returns all AttributeValues.

Returns:
a array of AttributeValues

getAttributeValuesAsList

public List getAttributeValuesAsList()
Returns all AttributeValues as a List.

Returns:
a List of AttributeValues

addAttributeValue

public void addAttributeValue(AttributeValue av)
Adds the specified AttributeValue.

Parameters:
av - the AttributeValue to be added

removeAttributeValue

public void removeAttributeValue(AttributeValue av)
Removes the specified AttributeValue.

Parameters:
av - the AttributeValue to be removed

clearAttributeValues

public void clearAttributeValues()
Removes all AttributeValues.


setAttributeValues

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

Parameters:
avs - a AttributeValue[]

setAttributeValues

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

Parameters:
avs - a List of AttributeValues

getKeyFields

public 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