gov.nih.nlm.umls.meta.impl
Class AtomAttributeImpl
java.lang.Object
gov.nih.nlm.umls.meta.impl.AttributeImpl
gov.nih.nlm.umls.meta.impl.AtomAttributeImpl
- All Implemented Interfaces:
- AtomAttribute, AtomElement, Attribute, AttributeElement, Comparable, ConceptElement, ContentViewElement, SourceElement, SourceIdentifierElement, SuppressibleElement
- public class AtomAttributeImpl
- extends AttributeImpl
- implements AtomAttribute
Implementation of the AtomAttribute
interface.
- Author:
- Brian Carlsen, Deborah Shapiro
Methods inherited from class gov.nih.nlm.umls.meta.impl.AttributeImpl |
getAtn, getAttributeIdentifier, getAttributeName, getAttributeValue, getAtui, getAtv, getConcept, getContentView, getCvf, getSatui, getSource, getSourceAttributeIdentifier, getSourceIdentifierType, getSuppress, isObsolete, isSuppressible, setAtn, setAttributeIdentifier, setAttributeName, setAttributeValue, setAtui, setAtv, setConcept, setContentView, setCvf, setSatui, setSource, setSourceAttributeIdentifier, setSourceIdentifierType, setSuppress |
AtomAttributeImpl
public AtomAttributeImpl()
- Instantiate an empty
AtomAttribute
.
AtomAttributeImpl
public AtomAttributeImpl(AtomAttribute att)
- This is a copy constructor for
AtomAttribute
.
- Parameters:
att
- AtomAttribute
to be copied
getAtom
public Atom getAtom()
- Returns the
Atom
this AtomAttribute
is connected to.
- Specified by:
getAtom
in interface AtomElement
- Returns:
- the
Atom
this AtomAttribute
is connected to
setAtom
public void setAtom(Atom atom)
- Sets the
Atom
this AtomAttribute
is connected to.
- Specified by:
setAtom
in interface AtomElement
- Parameters:
atom
- the Atom
this AtomAttribute
is connected to
getKeyFields
public String getKeyFields()
- Returns a
String
key which can be used
by equals, compareTo, and hashCode methods.
- Specified by:
getKeyFields
in interface Attribute
- Overrides:
getKeyFields
in class AttributeImpl
- Returns:
- a
String
composed from the cui, lui, sui,
aui, versioned source, atui, atn, atv, satui, and code.
hashCode
public int hashCode()
- Return a hash code based on key fields.
- Overrides:
hashCode
in class AttributeImpl
- Returns:
- a hash code based on key fields
equals
public boolean equals(Object o)
- Returns
true
if the specified object is
equal to this object. The specified object must be an
AtomAttribute
with matching key fields.
- Overrides:
equals
in class AttributeImpl
- Parameters:
o
- an Object
to compare against
- Returns:
- boolean
true
if Object o is equal
false
otherwise
compareTo
public int compareTo(Object o)
- Compares this
AtomAttribute
to another one. Results
are indeterminate if the specified parameter is not of the
same class.
- Specified by:
compareTo
in interface Comparable
- Overrides:
compareTo
in class AttributeImpl
- Parameters:
o
- the Object
to compare to
- Returns:
int
representing the relative ordering
of this and the compare-to object
Copyright ©2005