|
|||||||||
| 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
public class RelationshipImpl
Default implementation of the Relationship
interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface gov.nih.nlm.umls.meta.SourceElement |
|---|
SourceElement.BySourceComparator, SourceElement.BySourceRestrictor |
| Field Summary | |
|---|---|
protected String |
key_fields
|
protected boolean |
key_fields_flag
|
| Constructor Summary | |
|---|---|
RelationshipImpl()
Instantiates an empty Relationship. |
|
RelationshipImpl(Relationship rel)
Instantiates a Relationship from the specified Relationship. |
|
| Method Summary | |
|---|---|
void |
addAttribute(RelationshipAttribute att)
Adds the specified RelationshipAttribute. |
void |
clearAttributes()
Remove all RelationshipAttributes. |
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. |
AdditionalRelationshipLabel |
getAdditionalRelationshipLabel()
Returns the AdditionalRelationshipLabel (RELA). |
Atom |
getAtom()
Returns the Atom this Relationship is connected to. |
RelationshipAttribute[] |
getAttributes()
Returns the RelationshipAttributes. |
RelationshipAttribute[] |
getAttributes(Restrictor restrictor)
Returns a subset of this Relationship's RelationshipAttributes. |
List |
getAttributesAsList()
Returns the RelationshipAttributes as a List. |
Concept |
getConcept()
Returns the Concept that holds this Relationship. |
ContentView |
getContentView()
Returns tbe ContentView definition for this Relationship (CVF). |
ContentView |
getCvf()
Shorthand for getContentView(). |
String |
getDir()
Returns the directionality value (DIR). |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
RelationshipLabel |
getRel()
Shorthand for getRelationshipLabel(). |
AdditionalRelationshipLabel |
getRela()
Shorthand for getAdditionalRelationshipLabel(). |
Atom |
getRelatedAtom()
Returns the related atom involved. |
Concept |
getRelatedConcept()
Returns the related concept involved. |
SourceIdentifierType |
getRelatedSourceIdentifierType()
Returns the SourceIdentifierType to which this element is connected. |
String |
getRelationshipGroup()
Returns the relationship group (RG). |
String |
getRelationshipIdentifier()
Returns the Relationship unique identifier (RUI) related to this Relationship. |
RelationshipLabel |
getRelationshipLabel()
Returns the RelationshipLabel (REL). |
String |
getRg()
Shorthand for getRelationshipGroup(). |
String |
getRui()
Shorthand for getRelationshipIdentifier(). |
Source |
getSl()
Shorthand for getSourceOfLabel(). |
Source |
getSource()
Returns the source for this Relationship. |
SourceIdentifierType |
getSourceIdentifierType()
Returns the SourceIdentifierType to which this element is connected. |
Source |
getSourceOfLabel()
Returns the source of the relationship label (SL). |
String |
getSourceRelationshipIdentifier()
Returns the source asserted relationship identifier (SRUI). |
String |
getSrui()
Shorthand for getSourceRelationshipIdentifier(). |
Suppressible |
getSuppress()
Returns the suppressibility value (SUPPRESS). |
int |
hashCode()
Return a hash code based on key fields. |
boolean |
isAssertedDirection()
Indicates the directionality of this Relationship. |
boolean |
isObsolete()
Indicates whether or not this RelationshipImpl is obsolete. |
boolean |
isSuppressible()
Indicates whether or not this Atom is suppressible. |
void |
removeAttribute(RelationshipAttribute att)
Removes the specified RelationshipAttribute. |
void |
setAdditionalRelationshipLabel(AdditionalRelationshipLabel rela)
Sets the AdditionalRelationshipLabel (RELA). |
void |
setAtom(Atom atom)
Sets the Atom this Relationship is connected to. |
void |
setAttributes(List atts)
Replace RelationshipAttributes with the ones in the specified List. |
void |
setAttributes(RelationshipAttribute[] atts)
Replace RelationshipAttributes with the ones in the specified array. |
void |
setConcept(Concept concept)
Sets the Concept that holds this Relationship. |
void |
setContentView(ContentView cvf)
Sets tbe ContentView definition for this Relationship (CVF). |
void |
setCvf(ContentView cvf)
Shorthand for setContentView(ContentView). |
void |
setDir(String dir)
Sets the directionality value (DIR). |
void |
setIsAssertedDirection(boolean dir)
Sets the flag indicating the directionality of the Relationship. |
void |
setRel(RelationshipLabel rel)
Shorthand for setRelationshipLabel(RelationshipLabel). |
void |
setRela(AdditionalRelationshipLabel rela)
Shorthand for setAdditionalRelationshipLabel(AdditionalRelationshipLabel). |
void |
setRelatedAtom(Atom related_atom)
Sets the related atom involved. |
void |
setRelatedConcept(Concept related_concept)
Sets the related concept involved. |
void |
setRelatedSourceIdentifierType(SourceIdentifierType sit)
Sets the SourceIdentifierType to which this element is connected. |
void |
setRelationshipGroup(String rg)
Sets the relationship group (RG). |
void |
setRelationshipIdentifier(String rui)
Sets the Relationship unique identifier (RUI) related to this Relationship. |
void |
setRelationshipLabel(RelationshipLabel rel)
Sets the RelationshipLabel (REL). |
void |
setRg(String rg)
Shorthand for getRelationshipGroup(). |
void |
setRui(String rui)
Shorthand for setRelationshipIdentifier(String). |
void |
setSl(Source sl)
Shorthand for setSourceOfLabel(Source). |
void |
setSource(Source source)
Sets the source for this Relationship. |
void |
setSourceIdentifierType(SourceIdentifierType sit)
Sets the SourceIdentifierType to which this element is connected. |
void |
setSourceOfLabel(Source sl)
Sets the source of the relationship label (SL). |
void |
setSourceRelationshipIdentifier(String srui)
Sets the source asserted relationship identifier (SRUI). |
void |
setSrui(String srui)
Shorthand for setSourceRelationshipIdentifier(String). |
void |
setSuppress(Suppressible suppress)
Sets the suppressibility value (SUPPRESS). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean key_fields_flag
protected String key_fields
| Constructor Detail |
|---|
public RelationshipImpl()
Relationship.
public RelationshipImpl(Relationship rel)
Relationship from the specified Relationship.
rel - Relationship to be copied| Method Detail |
|---|
public SourceIdentifierType getSourceIdentifierType()
SourceIdentifierType to which this element is connected.
getSourceIdentifierType in interface SourceIdentifierElementSourceIdentifierType to which this element is connectedpublic void setSourceIdentifierType(SourceIdentifierType sit)
SourceIdentifierType to which this element is connected.
setSourceIdentifierType in interface SourceIdentifierElementsit - the SourceIdentifierType to which this element is connected.public SourceIdentifierType getRelatedSourceIdentifierType()
SourceIdentifierType to which this element is connected.
getRelatedSourceIdentifierType in interface RelatedSourceIdentifierElementSourceIdentifierType to which this element is connectedpublic void setRelatedSourceIdentifierType(SourceIdentifierType sit)
SourceIdentifierType to which this element is connected.
setRelatedSourceIdentifierType in interface RelatedSourceIdentifierElementsit - the SourceIdentifierType to which this element is connected.public RelationshipLabel getRelationshipLabel()
RelationshipLabel (REL).
getRelationshipLabel in interface RelationshipRelationshipLabelpublic RelationshipLabel getRel()
getRelationshipLabel().
getRel in interface RelationshipRelationshipLabelpublic void setRelationshipLabel(RelationshipLabel rel)
RelationshipLabel (REL).
setRelationshipLabel in interface Relationshiprel - the RelationshipLabelpublic void setRel(RelationshipLabel rel)
setRelationshipLabel(RelationshipLabel).
setRel in interface Relationshiprel - the RelationshipLabelpublic Concept getRelatedConcept()
getRelatedConcept in interface RelatedConceptElementpublic void setRelatedConcept(Concept related_concept)
setRelatedConcept in interface RelatedConceptElementrelated_concept - the related concept involvedpublic Atom getRelatedAtom()
public void setRelatedAtom(Atom related_atom)
related_atom - the related atom involvedpublic AdditionalRelationshipLabel getAdditionalRelationshipLabel()
AdditionalRelationshipLabel (RELA).
getAdditionalRelationshipLabel in interface RelationshipAdditionalRelationshipLabelpublic AdditionalRelationshipLabel getRela()
getAdditionalRelationshipLabel().
getRela in interface RelationshipAdditionalRelationshipLabelpublic void setAdditionalRelationshipLabel(AdditionalRelationshipLabel rela)
AdditionalRelationshipLabel (RELA).
setAdditionalRelationshipLabel in interface Relationshiprela - the AdditionalRelationshipLabelpublic void setRela(AdditionalRelationshipLabel rela)
setAdditionalRelationshipLabel(AdditionalRelationshipLabel).
setRela in interface Relationshiprela - the AdditionalRelationshipLabelpublic String getSourceRelationshipIdentifier()
getSourceRelationshipIdentifier in interface Relationshippublic String getSrui()
getSourceRelationshipIdentifier().
getSrui in interface Relationshippublic void setSourceRelationshipIdentifier(String srui)
setSourceRelationshipIdentifier in interface Relationshipsrui - the source asserted relationship identifierpublic void setSrui(String srui)
setSourceRelationshipIdentifier(String).
setSrui in interface Relationshipsrui - the source asserted relationship identifierpublic Source getSourceOfLabel()
getSourceOfLabel in interface Relationshippublic Source getSl()
getSourceOfLabel().
getSl in interface Relationshippublic void setSourceOfLabel(Source sl)
setSourceOfLabel in interface Relationshipsl - the source of the relationship labelpublic void setSl(Source sl)
setSourceOfLabel(Source).
setSl in interface Relationshipsl - the source of the relationship labelpublic String getRelationshipGroup()
getRelationshipGroup in interface Relationshippublic String getRg()
getRelationshipGroup().
getRg in interface Relationshippublic void setRelationshipGroup(String rg)
setRelationshipGroup in interface Relationshiprg - the relationship grouppublic void setRg(String rg)
getRelationshipGroup().
setRg in interface Relationshiprg - the relationship grouppublic Atom getAtom()
Atom this Relationship is connected to.
Atom this Relationship is connected topublic void setAtom(Atom atom)
Atom this Relationship is connected to.
atom - the Atom this Relationship is connected topublic Source getSource()
Relationship.
getSource in interface SourceElementSourcepublic void setSource(Source source)
Relationship.
setSource in interface SourceElementsource - Sourcepublic Suppressible getSuppress()
getSuppress in interface SuppressibleElementSuppressible valuepublic boolean isSuppressible()
Atom is suppressible.
isSuppressible in interface SuppressibleElementtrue if suppressible,
false if not suppressiblepublic void setSuppress(Suppressible suppress)
setSuppress in interface SuppressibleElementsuppress - the Suppressible valuepublic void setDir(String dir)
setDir in interface Relationshipdir - the directionality valuepublic String getDir()
getDir in interface Relationshippublic boolean isAssertedDirection()
Relationship.
isAssertedDirection in interface Relationshiptrue if directionality is in order read,
false if directionality is reversedpublic void setIsAssertedDirection(boolean dir)
Relationship.
setIsAssertedDirection in interface Relationshipdir - true if directionality is in order read,
false if directionality is reversedpublic Concept getConcept()
Concept that holds this Relationship.
getConcept in interface ConceptElementConcept that holds this Relationshippublic void setConcept(Concept concept)
Concept that holds this Relationship.
setConcept in interface ConceptElementconcept - the Concept that holds this Relationshippublic String getRui()
getRelationshipIdentifier().
getRui in interface Relationshippublic void setRui(String rui)
setRelationshipIdentifier(String).
setRui in interface Relationshiprui - the RUIpublic String getRelationshipIdentifier()
Relationship.
getRelationshipIdentifier in interface Relationshippublic void setRelationshipIdentifier(String rui)
Relationship.
setRelationshipIdentifier in interface Relationshiprui - the RUIpublic ContentView getContentView()
ContentView definition for this Relationship (CVF).
getContentView in interface ContentViewElementContentView definitionpublic void setContentView(ContentView cvf)
ContentView definition for this Relationship (CVF).
setContentView in interface ContentViewElementcvf - the ContentView definitionpublic ContentView getCvf()
getContentView().
getCvf in interface ContentViewElementContentView definitionpublic void setCvf(ContentView cvf)
setContentView(ContentView).
setCvf in interface ContentViewElementcvf - the ContentView definitionpublic RelationshipAttribute[] getAttributes()
RelationshipAttributes.
getAttributes in interface RelationshipRelationshipAttribute []public List getAttributesAsList()
RelationshipAttributes as a List.
getAttributesAsList in interface RelationshipRelationshipAttributes as a Listpublic void addAttribute(RelationshipAttribute att)
RelationshipAttribute.
addAttribute in interface Relationshipatt - the RelationshipAttribute to be addedpublic void removeAttribute(RelationshipAttribute att)
RelationshipAttribute.
removeAttribute in interface Relationshipatt - the RelationshipAttribute to be removedpublic void clearAttributes()
RelationshipAttributes.
clearAttributes in interface Relationshippublic void setAttributes(RelationshipAttribute[] atts)
RelationshipAttributes with the ones in the specified array.
setAttributes in interface Relationshipatts - an RelationshipAttribute []public void setAttributes(List atts)
RelationshipAttributes with the ones in the specified List.
setAttributes in interface Relationshipatts - a List of RelationshipAttributespublic RelationshipAttribute[] getAttributes(Restrictor restrictor)
Relationship's RelationshipAttributes.
Restricts the return based on the given Restrictor.
getAttributes in interface Relationshiprestrictor - Restrictor
public boolean isObsolete()
RelationshipImpl is obsolete.
isObsolete in interface SuppressibleElementtrue if obsolete,
false if not obsoletepublic String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields in interface RelationshipString composed from the cui1, rel,
versioned source, cui2, rela, suppress, rui, sl, and srui.public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
true if the specified object is
equal to this object. The specified object must be an
Relationship with matching key fields.
equals in class Objecto - 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 Comparableo - 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 | ||||||||