gov.nih.nlm.umls.meta.impl
Class RelationshipAttributeImpl
java.lang.Object
gov.nih.nlm.umls.meta.impl.AttributeImpl
gov.nih.nlm.umls.meta.impl.RelationshipAttributeImpl
- All Implemented Interfaces:
- Attribute, AttributeElement, Comparable, ConceptElement, ContentViewElement, RelationshipAttribute, RelationshipElement, SourceElement, SourceIdentifierElement, SuppressibleElement
- public class RelationshipAttributeImpl
- extends AttributeImpl
- implements RelationshipAttribute
Implementation of the RelationshipAttribute
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 |
RelationshipAttributeImpl
public RelationshipAttributeImpl()
- Instantiate an empty
RelationshipAttribute
.
RelationshipAttributeImpl
public RelationshipAttributeImpl(RelationshipAttribute rui_a)
- This is a copy constructor for
RelationshipAttribute
.
- Parameters:
rui_a
- RelationshipAttribute
to be copied
getRelationship
public Relationship getRelationship()
- Returns the
Relationship
this RelationshipAttribute
is connected to.
- Specified by:
getRelationship
in interface RelationshipElement
- Returns:
- the
Relationship
this RelationshipAttribute
is connected to
setRelationship
public void setRelationship(Relationship rel)
- Sets the
Relationship
this RelationshipAttribute
is connected to.
- Specified by:
setRelationship
in interface RelationshipElement
- Parameters:
rel
- the Relationship
this RelationshipAttribute
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, aui, sui,
versioned source, tty, 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 a
RelationshipAttribute
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
RelationshipAttribute
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