|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.umls.meta.impl.ComponentHistoryImpl
Default implementation of ComponentHistory
.
Nested Class Summary |
Nested classes inherited from class gov.nih.nlm.umls.meta.SourceElement |
SourceElement.BySourceComparator, SourceElement.BySourceRestrictor |
Constructor Summary | |
ComponentHistoryImpl()
Instantiates an empty ComponentHistory . |
|
ComponentHistoryImpl(ComponentHistory co)
Instantiates a ComponentHistory from the
specified ComponentHistory . |
Method Summary | |
int |
compareTo(Object o)
Compares this ComponentHistory to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
String |
getChangeKey()
Returns the change key which identifies what changed (CHANGEKEY). |
String |
getChangeType()
Returns the change type which identifies what changed (CHANGETYPE). |
String |
getChangeValue()
Returns the new value for what changed (CHANGEVALUE). |
Concept |
getConcept()
Returns the Concept that holds this ComponentHistory . |
ContentView |
getContentView()
Returns tbe ContentView definition for this Locator (CVF). |
ContentView |
getCvf()
Shorthand for getContentView() . |
String |
getIdentifier()
Returns the unique identifier (UI). |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
String |
getReason()
Returns the reason for the change (REASON). |
Source |
getSource()
Returns the source for this ComponentHistory . |
String |
getSver()
Shorthand for getVersion() . |
String |
getUi()
Shorthand for getIdentifier() . |
String |
getVersion()
Returns the release date or version number of a source (SVER). |
int |
hashCode()
Return a hash code based on key fields. |
void |
setChangeKey(String changekey)
Sets the change key to identify what changed (CHANGEKEY). |
void |
setChangeType(String changetype)
Sets the change type to identify what changed (CHANGETYPE). |
void |
setChangeValue(String changeval)
Sets the new value for what changed (CHANGEVALUE). |
void |
setConcept(Concept concept)
Sets the Concept that holds this ComponentHistory . |
void |
setContentView(ContentView cvf)
Sets tbe ContentView definition for this Locator (CVF). |
void |
setCvf(ContentView cvf)
Shorthand for setContentView(ContentView) . |
void |
setIdentifier(String ui)
Sets the unique identifier (UI). |
void |
setReason(String reason)
Sets the reason for the change (REASON). |
void |
setSource(Source source)
Sets the source for this ComponentHistory . |
void |
setSver(String sver)
Shorthand for setVersion(String) . |
void |
setUi(String ui)
Shorthand for setIdentifier(String) . |
void |
setVersion(String sver)
Sets the release date or version number of a source (SVER). |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ComponentHistoryImpl()
ComponentHistory
.
public ComponentHistoryImpl(ComponentHistory co)
ComponentHistory
from the
specified ComponentHistory
.
co
- the ComponentHistory
to be copiedMethod Detail |
public String getVersion()
getVersion
in interface ComponentHistory
public String getSver()
getVersion()
.
getSver
in interface ComponentHistory
getVersion()
public void setVersion(String sver)
setVersion
in interface ComponentHistory
sver
- the release date or version number of a sourcepublic void setSver(String sver)
setVersion(String)
.
setSver
in interface ComponentHistory
sver
- the release date or version number of a sourcepublic String getChangeKey()
getChangeKey
in interface ComponentHistory
public void setChangeKey(String changekey)
setChangeKey
in interface ComponentHistory
changekey
- the change keypublic String getChangeType()
getChangeType
in interface ComponentHistory
public void setChangeType(String changetype)
setChangeType
in interface ComponentHistory
changetype
- the change typepublic String getChangeValue()
getChangeValue
in interface ComponentHistory
public void setChangeValue(String changeval)
setChangeValue
in interface ComponentHistory
changeval
- the change valuepublic String getReason()
getReason
in interface ComponentHistory
public void setReason(String reason)
setReason
in interface ComponentHistory
reason
- reason for the changedpublic Concept getConcept()
Concept
that holds this ComponentHistory
.
getConcept
in interface ConceptElement
Concept
that holds this ComponentHistory
public void setConcept(Concept concept)
Concept
that holds this ComponentHistory
.
setConcept
in interface ConceptElement
concept
- the Concept
that holds this ComponentHistory
public Source getSource()
ComponentHistory
.
getSource
in interface SourceElement
Source
public void setSource(Source source)
ComponentHistory
.
setSource
in interface SourceElement
source
- Source
public String getUi()
getIdentifier()
.
getUi
in interface ComponentHistory
getIdentifier()
public String getIdentifier()
getIdentifier
in interface ComponentHistory
public void setIdentifier(String ui)
setIdentifier
in interface ComponentHistory
ui
- the new valuepublic void setUi(String ui)
setIdentifier(String)
.
setUi
in interface ComponentHistory
ui
- the new valuepublic ContentView getContentView()
ContentView
definition for this Locator
(CVF).
getContentView
in interface ContentViewElement
ContentView
definitionpublic void setContentView(ContentView cvf)
ContentView
definition for this Locator
(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 int hashCode()
public boolean equals(Object o)
true
if the specified object is
equal to this object. The specified object must be a
ComponentHistory
with matching key fields.
o
- an Object
to compare against
true
if Object o is equal
false
otherwisepublic int compareTo(Object o)
ComponentHistory
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 objectpublic String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields
in interface ComponentHistory
String
composed from the ui, change,
newval, and description.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |