|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Relationship
Represents a relationship between two Concepts or two
Atoms.
Following is a UML Class diagram showing the neighborhood around Relationship

All data in a row of the MRREL file is represented here.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface gov.nih.nlm.umls.meta.SourceElement |
|---|
SourceElement.BySourceComparator, SourceElement.BySourceRestrictor |
| Method Summary | |
|---|---|
void |
addAttribute(RelationshipAttribute att)
Adds the specified RelationshipAttribute. |
void |
clearAttributes()
Remove all RelationshipAttributes. |
AdditionalRelationshipLabel |
getAdditionalRelationshipLabel()
Returns the AdditionalRelationshipLabel (RELA). |
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. |
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()
Returns the RelationshipLabel (REL). |
AdditionalRelationshipLabel |
getRela()
Returns the AdditionalRelationshipLabel (RELA). |
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()
Returns the relationship group (RG). |
String |
getRui()
Shorthand for getRelationshipIdentifier(). |
Source |
getSl()
Returns the source of the relationship label (SL). |
Source |
getSourceOfLabel()
Returns the source of the relationship label (SL). |
String |
getSourceRelationshipIdentifier()
Returns the source asserted relationship identifier (SRUI). |
String |
getSrui()
Returns the source asserted relationship identifier (SRUI). |
boolean |
isAssertedDirection()
Indicates the directionality of this Relationship. |
void |
removeAttribute(RelationshipAttribute att)
Removes the specified RelationshipAttribute. |
void |
setAdditionalRelationshipLabel(AdditionalRelationshipLabel rela)
Sets the AdditionalRelationshipLabel (RELA). |
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 |
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)
Sets the RelationshipLabel (REL). |
void |
setRela(AdditionalRelationshipLabel rela)
Sets the AdditionalRelationshipLabel (RELA). |
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)
Sets the relationship group (RG). |
void |
setRui(String rui)
Shorthand for setRelationshipIdentifier(String). |
void |
setSl(Source sl)
Sets the source of the relationship label (SL). |
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)
Sets the source asserted relationship identifier (SRUI). |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| 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 |
| Method Detail |
|---|
RelationshipLabel getRelationshipLabel()
RelationshipLabel (REL).
RelationshipLabelRelationshipLabel getRel()
RelationshipLabel (REL).
This is shorthand for getRelationshipLabel().
RelationshipLabelvoid setRelationshipLabel(RelationshipLabel rel)
RelationshipLabel (REL).
rel - the RelationshipLabelvoid setRel(RelationshipLabel rel)
RelationshipLabel (REL).
This is shorthand for setRelationshipLabel(RelationshipLabel).
rel - the RelationshipLabelAdditionalRelationshipLabel getAdditionalRelationshipLabel()
AdditionalRelationshipLabel (RELA).
AdditionalRelationshipLabelAdditionalRelationshipLabel getRela()
AdditionalRelationshipLabel (RELA).
This is shorthand for getAdditionalRelationshipLabel().
AdditionalRelationshipLabelvoid setAdditionalRelationshipLabel(AdditionalRelationshipLabel rela)
AdditionalRelationshipLabel (RELA).
rela - the AdditionalRelationshipLabelvoid setRela(AdditionalRelationshipLabel rela)
AdditionalRelationshipLabel (RELA).
This is shorthand for
setAdditionalRelationshipLabel(AdditionalRelationshipLabel).
rela - the AdditionalRelationshipLabelString getSourceRelationshipIdentifier()
String getSrui()
getSourceRelationshipIdentifier().
void setSourceRelationshipIdentifier(String srui)
srui - the source asserted relationship identifiervoid setSrui(String srui)
setSourceRelationshipIdentifier(String).
srui - the source asserted relationship identifierSource getSourceOfLabel()
Source getSl()
getSourceOfLabel().
void setSourceOfLabel(Source sl)
sl - the source of the relationship labelvoid setSl(Source sl)
setSourceOfLabel(Source).
sl - the source of the relationship labelString getRelationshipGroup()
String getRg()
getRelationshipGroup().
void setRelationshipGroup(String rg)
rg - the relationship groupvoid setRg(String rg)
getRelationshipGroup().
rg - the relationship groupvoid setDir(String dir)
dir - the directionality valueString getDir()
boolean isAssertedDirection()
Relationship.
true if directionality is in order read,
false if directionality is reversedvoid setIsAssertedDirection(boolean dir)
Relationship.
dir - true if directionality is in order read,
false if directionality is reversedString getRui()
getRelationshipIdentifier().
void setRui(String rui)
setRelationshipIdentifier(String).
rui - the RUIString getRelationshipIdentifier()
Relationship.
void setRelationshipIdentifier(String rui)
Relationship.
rui - the RUIString getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
String composed from key Relationship fieldsRelationshipAttribute[] getAttributes()
RelationshipAttributes.
RelationshipAttribute []List getAttributesAsList()
RelationshipAttributes as a List.
RelationshipAttributes as a Listvoid addAttribute(RelationshipAttribute att)
RelationshipAttribute.
att - the RelationshipAttribute to be addedvoid removeAttribute(RelationshipAttribute att)
RelationshipAttribute.
att - the RelationshipAttribute to be removedvoid clearAttributes()
RelationshipAttributes.
void setAttributes(RelationshipAttribute[] atts)
RelationshipAttributes with the ones in the specified array.
atts - an RelationshipAttribute []void setAttributes(List atts)
RelationshipAttributes with the ones in the specified List.
atts - a List of RelationshipAttributesRelationshipAttribute[] getAttributes(Restrictor restrictor)
Relationship's RelationshipAttributes.
Restricts the return based on the given Restrictor.
restrictor - Restrictor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||