|
|||||||||
| 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
public class 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 copied| Method Detail |
|---|
public HierarchicalSemanticType getSemanticType()
HierarchicalSemanticType (STY).
getSemanticType in interface SemanticTypeHierarchicalSemanticTypepublic void setSemanticType(HierarchicalSemanticType sty)
HierarchicalSemanticType (STY).
setSemanticType in interface SemanticTypesty - the HierarchicalSemanticTypepublic HierarchicalSemanticType getSty()
getSemanticType()
getSty in interface SemanticTypeHierarchicalSemanticTypepublic void setSty(HierarchicalSemanticType sty)
setSemanticType(HierarchicalSemanticType).
setSty in interface SemanticTypesty - the HierarchicalSemanticTypepublic String getAttributeIdentifier()
getAttributeIdentifier in interface SemanticTypepublic String getAtui()
getAttributeIdentifier().
getAtui in interface SemanticTypepublic void setAttributeIdentifier(String atui)
setAttributeIdentifier in interface SemanticTypeatui - the ATUIpublic void setAtui(String atui)
setAttributeIdentifier(String).
setAtui in interface SemanticTypeatui - the ATUIpublic Concept getConcept()
Concept that holds this SemanticType.
getConcept in interface ConceptElementConcept that holds this SemanticTypepublic void setConcept(Concept concept)
Concept that holds this SemanticType.
setConcept in interface ConceptElementconcept - the Concept that holds this SemanticTypepublic ContentView getContentView()
ContentView definition for this SemanticType (CVF).
getContentView in interface ContentViewElementContentView definitionpublic void setContentView(ContentView cvf)
ContentView definition for this SemanticType (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 String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields in interface SemanticTypeString composed from the cui, and sty ui.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
SemanticType 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)
SemanticType 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 | ||||||||