|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.umls.meta.impl.SemanticTypeImpl
Default implementation of the SemanticType
interface.
Constructor Summary | |
SemanticTypeImpl()
Instantiates an empty SemanticType . |
|
SemanticTypeImpl(SemanticType sty)
Instantiates a SemanticType from the specified SemanticType . |
Method Summary | |
int |
compareTo(Object o)
Compares this SemanticType to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
String |
getAttributeIdentifier()
Returns the unique identifier (ATUI). |
String |
getAtui()
Shorthand for getAttributeIdentifier() . |
Concept |
getConcept()
Returns the Concept that holds this SemanticType . |
ContentView |
getContentView()
Returns tbe ContentView definition for this SemanticType (CVF). |
ContentView |
getCvf()
Shorthand for getContentView() . |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
HierarchicalSemanticType |
getSemanticType()
Returns the HierarchicalSemanticType (STY). |
HierarchicalSemanticType |
getSty()
Shorthand for getSemanticType() |
int |
hashCode()
Return a hash code based on key fields. |
void |
setAttributeIdentifier(String atui)
Sets the unique identifier (ATUI). |
void |
setAtui(String atui)
Shorthand for setAttributeIdentifier(String) . |
void |
setConcept(Concept concept)
Sets the Concept that holds this SemanticType . |
void |
setContentView(ContentView cvf)
Sets tbe ContentView definition for this SemanticType (CVF). |
void |
setCvf(ContentView cvf)
Shorthand for setContentView(ContentView) . |
void |
setSemanticType(HierarchicalSemanticType sty)
Sets the HierarchicalSemanticType (STY). |
void |
setSty(HierarchicalSemanticType sty)
Shorthand for setSemanticType(HierarchicalSemanticType) . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SemanticTypeImpl()
SemanticType
.
public SemanticTypeImpl(SemanticType sty)
SemanticType
from the specified SemanticType
.
sty
- SemanticType
to be copiedMethod Detail |
public HierarchicalSemanticType getSemanticType()
HierarchicalSemanticType
(STY).
getSemanticType
in interface SemanticType
HierarchicalSemanticType
public void setSemanticType(HierarchicalSemanticType sty)
HierarchicalSemanticType
(STY).
setSemanticType
in interface SemanticType
sty
- the HierarchicalSemanticType
public HierarchicalSemanticType getSty()
getSemanticType()
getSty
in interface SemanticType
HierarchicalSemanticType
public void setSty(HierarchicalSemanticType sty)
setSemanticType(HierarchicalSemanticType)
.
setSty
in interface SemanticType
sty
- the HierarchicalSemanticType
public String getAttributeIdentifier()
getAttributeIdentifier
in interface SemanticType
public String getAtui()
getAttributeIdentifier()
.
getAtui
in interface SemanticType
public void setAttributeIdentifier(String atui)
setAttributeIdentifier
in interface SemanticType
atui
- the ATUIpublic void setAtui(String atui)
setAttributeIdentifier(String)
.
setAtui
in interface SemanticType
atui
- the ATUIpublic Concept getConcept()
Concept
that holds this SemanticType
.
getConcept
in interface ConceptElement
Concept
that holds this SemanticType
public void setConcept(Concept concept)
Concept
that holds this SemanticType
.
setConcept
in interface ConceptElement
concept
- the Concept
that holds this SemanticType
public ContentView getContentView()
ContentView
definition for this SemanticType
(CVF).
getContentView
in interface ContentViewElement
ContentView
definitionpublic void setContentView(ContentView cvf)
ContentView
definition for this SemanticType
(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 String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields
in interface SemanticType
String
composed from the cui, and sty ui.public int hashCode()
public boolean equals(Object o)
true
if the specified object is
equal to this object. The specified object must be an
SemanticType
with matching key fields.
o
- an Object
to compare against
true
if Object o is equal
false
otherwisepublic int compareTo(Object o)
SemanticType
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 |