|
|||||||||
| 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
public class AtomRelationshipImpl
Implementation of the Relationship
interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface gov.nih.nlm.umls.meta.AtomElement |
|---|
AtomElement.ByLanguageRestrictor, AtomElement.BySourceRestrictor |
| Nested classes/interfaces inherited from interface gov.nih.nlm.umls.meta.SourceElement |
|---|
SourceElement.BySourceComparator |
| 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 copied| Method Detail |
|---|
public Atom getRelatedAtom()
getRelatedAtom in interface RelatedAtomElementgetRelatedAtom in class RelationshipImplAtompublic void setRelatedAtom(Atom related_atom)
setRelatedAtom in interface RelatedAtomElementsetRelatedAtom in class RelationshipImplrelated_atom - the related atom involvedpublic Atom getAtom()
Atom this Relationship is connected to.
getAtom in interface AtomElementgetAtom in class RelationshipImplAtom this Relationship is connected topublic void setAtom(Atom atom)
Atom this Relationship is connected to.
setAtom in interface AtomElementsetAtom in class RelationshipImplatom - the Atom this Relationship is connected topublic String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields in interface RelationshipgetKeyFields in class RelationshipImplString composed from the cui1, rel,
aui1, versioned source, cui2, aui2, rela, suppress, rui, sl, and srui.public int hashCode()
hashCode in class RelationshipImplpublic 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 RelationshipImplo - 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 ComparablecompareTo in class RelationshipImplo - 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 | ||||||||