|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.umls.meta.impl.RelationshipImpl
gov.nih.nlm.umls.meta.impl.AtomRelationshipImpl
Implementation of the Relationship
interface.
Nested Class Summary |
Nested classes inherited from class gov.nih.nlm.umls.meta.AtomElement |
AtomElement.ByLanguageRestrictor, AtomElement.BySourceRestrictor |
Nested classes inherited from class gov.nih.nlm.umls.meta.SourceElement |
SourceElement.BySourceComparator, SourceElement.BySourceRestrictor |
Field Summary |
Fields inherited from class gov.nih.nlm.umls.meta.impl.RelationshipImpl |
key_fields, key_fields_flag |
Constructor Summary | |
AtomRelationshipImpl()
Instantiates an empty AtomRelationship . |
|
AtomRelationshipImpl(AtomRelationship rel)
Instantiates an AtomRelationship from the specified AtomRelationship . |
Method Summary | |
int |
compareTo(Object o)
Compares this Relationship to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
Atom |
getAtom()
Returns the Atom this Relationship is connected to. |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
Atom |
getRelatedAtom()
Returns the related atom involved. |
int |
hashCode()
Return a hash code based on key fields. |
void |
setAtom(Atom atom)
Sets the Atom this Relationship is connected to. |
void |
setRelatedAtom(Atom related_atom)
Sets the related atom involved. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gov.nih.nlm.umls.meta.ConceptElement |
getConcept, setConcept |
Methods inherited from interface gov.nih.nlm.umls.meta.ContentViewElement |
getContentView, getCvf, setContentView, setCvf |
Methods inherited from interface gov.nih.nlm.umls.meta.RelatedConceptElement |
getRelatedConcept, setRelatedConcept |
Methods inherited from interface gov.nih.nlm.umls.meta.RelatedSourceIdentifierElement |
getRelatedSourceIdentifierType, setRelatedSourceIdentifierType |
Methods inherited from interface gov.nih.nlm.umls.meta.SourceElement |
getSource, setSource |
Methods inherited from interface gov.nih.nlm.umls.meta.SourceIdentifierElement |
getSourceIdentifierType, setSourceIdentifierType |
Methods inherited from interface gov.nih.nlm.umls.meta.SuppressibleElement |
getSuppress, isObsolete, isSuppressible, setSuppress |
Constructor Detail |
public AtomRelationshipImpl()
AtomRelationship
.
public AtomRelationshipImpl(AtomRelationship rel)
AtomRelationship
from the specified AtomRelationship
.
rel
- AtomRelationship
to be copiedMethod Detail |
public Atom getRelatedAtom()
getRelatedAtom
in interface RelatedAtomElement
getRelatedAtom
in class RelationshipImpl
Atom
public void setRelatedAtom(Atom related_atom)
setRelatedAtom
in interface RelatedAtomElement
setRelatedAtom
in class RelationshipImpl
related_atom
- the related atom involvedpublic Atom getAtom()
Atom
this Relationship
is connected to.
getAtom
in interface AtomElement
getAtom
in class RelationshipImpl
Atom
this Relationship
is connected topublic void setAtom(Atom atom)
Atom
this Relationship
is connected to.
setAtom
in interface AtomElement
setAtom
in class RelationshipImpl
atom
- the Atom
this Relationship
is connected topublic String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields
in interface Relationship
getKeyFields
in class RelationshipImpl
String
composed from the cui1, rel,
aui1, versioned source, cui2, aui2, rela, suppress, rui, sl, and srui.public int hashCode()
hashCode
in class RelationshipImpl
public boolean equals(Object o)
true
if the specified object is
equal to this object. The specified object must be an
AtomRelationship
with matching key fields.
equals
in class RelationshipImpl
o
- an Object
to compare against
true
if Object o is equal
false
otherwisepublic int compareTo(Object o)
Relationship
to another one. Results
are indeterminate if the specified parameter is not of the
same class.
compareTo
in interface Comparable
compareTo
in class RelationshipImpl
o
- 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 |