|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.meta.impl.ContextMemberImpl
public class ContextMemberImpl
Default implementation of the ContextMember
interface.
| Field Summary | |
|---|---|
protected String |
key_fields
|
protected boolean |
key_fields_flag
|
| Constructor Summary | |
|---|---|
ContextMemberImpl()
Instantiates an empty ContextMember. |
|
ContextMemberImpl(ContextMember cm)
Instantiates a ContextMember from the specified ContextMember. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Compares this ContextMember to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
AdditionalRelationshipLabel |
getAdditionalRelationshipLabel()
Returns the AdditionalRelationshipLabel (RELA) from the context member to its parent. |
String |
getCxl()
Shorthand for getLabel(). |
String |
getHcd()
Shorthand for getHierarchicalCode(). |
String |
getHierarchicalCode()
Returns the hierarchical code (HCD). |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
String |
getLabel()
Returns the label for this ContextMember (CXL). |
int |
getRank()
Returns the rank (RNK) if the member is an ancestor. |
AdditionalRelationshipLabel |
getRela()
Shorthand for getAdditionalRelationshipLabel(). |
Atom |
getRelatedAtom()
Returns the related Atom of the ancestor, sibling, or child. |
Concept |
getRelatedConcept()
Returns the related concept of the ancestor, sibling, or child. |
String |
getXc()
Returns the "has child flag" value (XC). |
boolean |
hasChild()
Indicates whether or not this context member has children. |
int |
hashCode()
Return a hash code based on key fields. |
void |
setAdditionalRelationshipLabel(AdditionalRelationshipLabel rela)
Sets the AdditionalRelationshipLabel (RELA) from the context member to its parent. |
void |
setCxl(String cxl)
Shorthand for setLabel(String). |
void |
setHasChild(boolean xc)
Sets the flag indicating whether or not this ContextMember has a child. |
void |
setHcd(String hcd)
Shorthand for setHierarchicalCode(String). |
void |
setHierarchicalCode(String hcd)
Sets the hierarchical code (HCD). |
void |
setLabel(String cxl)
Sets the label for this ContextMember. |
void |
setRank(int rnk)
Sets the rank (RNK) if the member is an ancestor |
void |
setRela(AdditionalRelationshipLabel rela)
Shorthand for setAdditionalRelationshipLabel(AdditionalRelationshipLabel). |
void |
setRelatedAtom(Atom related_atom)
Sets the related atom of the ancestor, sibling, or child. |
void |
setRelatedConcept(Concept related_concept)
Sets the related concept of the ancestor, sibling, or child. |
void |
setXc(String xc)
Sets the "has child flag" value (XC). |
| 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 ContextMemberImpl()
ContextMember.
public ContextMemberImpl(ContextMember cm)
ContextMember from the specified ContextMember.
cm - ContextMember to be copied| Method Detail |
|---|
public int getRank()
getRank in interface ContextMemberint rankpublic void setRank(int rnk)
setRank in interface ContextMemberrnk - the int rankpublic Concept getRelatedConcept()
getRelatedConcept in interface RelatedConceptElementpublic void setRelatedConcept(Concept related_concept)
setRelatedConcept in interface RelatedConceptElementrelated_concept - the related concept of the ancestor, sibling, or childpublic Atom getRelatedAtom()
getRelatedAtom in interface RelatedAtomElementpublic void setRelatedAtom(Atom related_atom)
setRelatedAtom in interface RelatedAtomElementrelated_atom - the related atom of the ancestor, sibling, or childpublic String getHierarchicalCode()
getHierarchicalCode in interface ContextMemberpublic String getHcd()
getHierarchicalCode().
getHcd in interface ContextMemberpublic void setHierarchicalCode(String hcd)
setHierarchicalCode in interface ContextMemberhcd - the hierarchical codepublic void setHcd(String hcd)
setHierarchicalCode(String).
setHcd in interface ContextMemberhcd - the hierarchical codepublic AdditionalRelationshipLabel getAdditionalRelationshipLabel()
AdditionalRelationshipLabel (RELA) from the context member to its parent.
getAdditionalRelationshipLabel in interface ContextMemberAdditionalRelationshipLabelpublic AdditionalRelationshipLabel getRela()
getAdditionalRelationshipLabel().
getRela in interface ContextMemberAdditionalRelationshipLabelpublic void setAdditionalRelationshipLabel(AdditionalRelationshipLabel rela)
AdditionalRelationshipLabel (RELA) from the context member to its parent.
setAdditionalRelationshipLabel in interface ContextMemberrela - the AdditionalRelationshipLabelpublic void setRela(AdditionalRelationshipLabel rela)
setAdditionalRelationshipLabel(AdditionalRelationshipLabel).
setRela in interface ContextMemberrela - the AdditionalRelationshipLabelpublic String getXc()
getXc in interface ContextMemberpublic void setXc(String xc)
setXc in interface ContextMemberxc - the "has child flag" valuepublic boolean hasChild()
hasChild in interface ContextMembertrue if ContextMember has a child,
false if ContextMember does not have a childpublic void setHasChild(boolean xc)
ContextMember has a child.
setHasChild in interface ContextMemberxc - true if ContextMember has a child,
false if ContextMember does not have a childpublic String getLabel()
ContextMember (CXL).
getLabel in interface ContextMemberContextMemberpublic String getCxl()
getLabel().
getCxl in interface ContextMemberContextMemberpublic void setLabel(String cxl)
ContextMember.
setLabel in interface ContextMembercxl - context labelpublic void setCxl(String cxl)
setLabel(String).
setCxl in interface ContextMembercxl - the label for this ContextMemberpublic String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields in interface ContextMemberString composed from the cxl, rank, str
cui2, and aui2.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 a
ContextMember 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)
ContextMember 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 | ||||||||