|
||||||||||
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
Default implementation of the Relationship
interface.
Nested Class Summary |
Nested classes inherited from class 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 RelationshipAttribute s. |
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 RelationshipAttribute s. |
RelationshipAttribute[] |
getAttributes(Restrictor restrictor)
Returns a subset of this Relationship 's RelationshipAttribute s. |
List |
getAttributesAsList()
Returns the RelationshipAttribute s 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 RelationshipAttribute s with the ones in the specified List . |
void |
setAttributes(RelationshipAttribute[] atts)
Replace RelationshipAttribute s 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 copiedMethod Detail |
public SourceIdentifierType getSourceIdentifierType()
SourceIdentifierType
to which this element is connected.
getSourceIdentifierType
in interface SourceIdentifierElement
SourceIdentifierType
to which this element is connectedpublic void setSourceIdentifierType(SourceIdentifierType sit)
SourceIdentifierType
to which this element is connected.
setSourceIdentifierType
in interface SourceIdentifierElement
sit
- the SourceIdentifierType
to which this element is connected.public SourceIdentifierType getRelatedSourceIdentifierType()
SourceIdentifierType
to which this element is connected.
getRelatedSourceIdentifierType
in interface RelatedSourceIdentifierElement
SourceIdentifierType
to which this element is connectedpublic void setRelatedSourceIdentifierType(SourceIdentifierType sit)
SourceIdentifierType
to which this element is connected.
setRelatedSourceIdentifierType
in interface RelatedSourceIdentifierElement
sit
- the SourceIdentifierType
to which this element is connected.public RelationshipLabel getRelationshipLabel()
RelationshipLabel
(REL).
getRelationshipLabel
in interface Relationship
RelationshipLabel
public RelationshipLabel getRel()
getRelationshipLabel()
.
getRel
in interface Relationship
RelationshipLabel
public void setRelationshipLabel(RelationshipLabel rel)
RelationshipLabel
(REL).
setRelationshipLabel
in interface Relationship
rel
- the RelationshipLabel
public void setRel(RelationshipLabel rel)
setRelationshipLabel(RelationshipLabel)
.
setRel
in interface Relationship
rel
- the RelationshipLabel
public Concept getRelatedConcept()
getRelatedConcept
in interface RelatedConceptElement
public void setRelatedConcept(Concept related_concept)
setRelatedConcept
in interface RelatedConceptElement
related_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 Relationship
AdditionalRelationshipLabel
public AdditionalRelationshipLabel getRela()
getAdditionalRelationshipLabel()
.
getRela
in interface Relationship
AdditionalRelationshipLabel
public void setAdditionalRelationshipLabel(AdditionalRelationshipLabel rela)
AdditionalRelationshipLabel
(RELA).
setAdditionalRelationshipLabel
in interface Relationship
rela
- the AdditionalRelationshipLabel
public void setRela(AdditionalRelationshipLabel rela)
setAdditionalRelationshipLabel(AdditionalRelationshipLabel)
.
setRela
in interface Relationship
rela
- the AdditionalRelationshipLabel
public String getSourceRelationshipIdentifier()
getSourceRelationshipIdentifier
in interface Relationship
public String getSrui()
getSourceRelationshipIdentifier()
.
getSrui
in interface Relationship
public void setSourceRelationshipIdentifier(String srui)
setSourceRelationshipIdentifier
in interface Relationship
srui
- the source asserted relationship identifierpublic void setSrui(String srui)
setSourceRelationshipIdentifier(String)
.
setSrui
in interface Relationship
srui
- the source asserted relationship identifierpublic Source getSourceOfLabel()
getSourceOfLabel
in interface Relationship
public Source getSl()
getSourceOfLabel()
.
getSl
in interface Relationship
public void setSourceOfLabel(Source sl)
setSourceOfLabel
in interface Relationship
sl
- the source of the relationship labelpublic void setSl(Source sl)
setSourceOfLabel(Source)
.
setSl
in interface Relationship
sl
- the source of the relationship labelpublic String getRelationshipGroup()
getRelationshipGroup
in interface Relationship
public String getRg()
getRelationshipGroup()
.
getRg
in interface Relationship
public void setRelationshipGroup(String rg)
setRelationshipGroup
in interface Relationship
rg
- the relationship grouppublic void setRg(String rg)
getRelationshipGroup()
.
setRg
in interface Relationship
rg
- 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 SourceElement
Source
public void setSource(Source source)
Relationship
.
setSource
in interface SourceElement
source
- Source
public Suppressible getSuppress()
getSuppress
in interface SuppressibleElement
Suppressible
valuepublic boolean isSuppressible()
Atom
is suppressible.
isSuppressible
in interface SuppressibleElement
true
if suppressible,
false
if not suppressiblepublic void setSuppress(Suppressible suppress)
setSuppress
in interface SuppressibleElement
suppress
- the Suppressible
valuepublic void setDir(String dir)
setDir
in interface Relationship
dir
- the directionality valuepublic String getDir()
getDir
in interface Relationship
public boolean isAssertedDirection()
Relationship
.
isAssertedDirection
in interface Relationship
true
if directionality is in order read,
false
if directionality is reversedpublic void setIsAssertedDirection(boolean dir)
Relationship
.
setIsAssertedDirection
in interface Relationship
dir
- true
if directionality is in order read,
false
if directionality is reversedpublic Concept getConcept()
Concept
that holds this Relationship
.
getConcept
in interface ConceptElement
Concept
that holds this Relationship
public void setConcept(Concept concept)
Concept
that holds this Relationship
.
setConcept
in interface ConceptElement
concept
- the Concept
that holds this Relationship
public String getRui()
getRelationshipIdentifier()
.
getRui
in interface Relationship
public void setRui(String rui)
setRelationshipIdentifier(String)
.
setRui
in interface Relationship
rui
- the RUIpublic String getRelationshipIdentifier()
Relationship
.
getRelationshipIdentifier
in interface Relationship
public void setRelationshipIdentifier(String rui)
Relationship
.
setRelationshipIdentifier
in interface Relationship
rui
- the RUIpublic ContentView getContentView()
ContentView
definition for this Relationship
(CVF).
getContentView
in interface ContentViewElement
ContentView
definitionpublic void setContentView(ContentView cvf)
ContentView
definition for this Relationship
(CVF).
setContentView
in interface ContentViewElement
cvf
- the ContentView
definitionpublic ContentView getCvf()
getContentView()
.
getCvf
in interface ContentViewElement
ContentView
definitionpublic void setCvf(ContentView cvf)
setContentView(ContentView)
.
setCvf
in interface ContentViewElement
cvf
- the ContentView
definitionpublic RelationshipAttribute[] getAttributes()
RelationshipAttribute
s.
getAttributes
in interface Relationship
RelationshipAttribute
[]
public List getAttributesAsList()
RelationshipAttribute
s as a List
.
getAttributesAsList
in interface Relationship
RelationshipAttribute
s as a List
public void addAttribute(RelationshipAttribute att)
RelationshipAttribute
.
addAttribute
in interface Relationship
att
- the RelationshipAttribute
to be addedpublic void removeAttribute(RelationshipAttribute att)
RelationshipAttribute
.
removeAttribute
in interface Relationship
att
- the RelationshipAttribute
to be removedpublic void clearAttributes()
RelationshipAttribute
s.
clearAttributes
in interface Relationship
public void setAttributes(RelationshipAttribute[] atts)
RelationshipAttribute
s with the ones in the specified array.
setAttributes
in interface Relationship
atts
- an RelationshipAttribute
[]
public void setAttributes(List atts)
RelationshipAttribute
s with the ones in the specified List
.
setAttributes
in interface Relationship
atts
- a List
of RelationshipAttribute
spublic RelationshipAttribute[] getAttributes(Restrictor restrictor)
Relationship
's RelationshipAttribute
s.
Restricts the return based on the given Restrictor
.
getAttributes
in interface Relationship
restrictor
- Restrictor
public boolean isObsolete()
RelationshipImpl
is obsolete.
isObsolete
in interface SuppressibleElement
true
if obsolete,
false
if not obsoletepublic String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields
in interface Relationship
String
composed from the cui1, rel,
versioned source, cui2, rela, suppress, rui, sl, and srui.public int hashCode()
public 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.
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
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 |