|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.umls.meta.impl.DefinitionImpl
Default implementation of the Definition
interface.
Nested Class Summary |
Nested classes inherited from class gov.nih.nlm.umls.meta.AtomElement |
AtomElement.ByLanguageRestrictor, AtomElement.BySourceRestrictor |
Nested classes inherited from class gov.nih.nlm.umls.meta.SourceElement |
SourceElement.BySourceComparator, SourceElement.BySourceRestrictor |
Constructor Summary | |
DefinitionImpl()
Instantiates an empty Definition . |
|
DefinitionImpl(Definition def)
Instantiates a Definition from the specified Definition . |
Method Summary | |
int |
compareTo(Object o)
Compares this Definition to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
Atom |
getAtom()
Returns the Atom related to this Definition . |
String |
getAttributeIdentifier()
Returns the unique identifier (ATUI). |
String |
getAtui()
Shorthand for getAttributeIdentifier() . |
Concept |
getConcept()
Returns the Concept that holds this Definition . |
ContentView |
getContentView()
Returns tbe ContentView definition for this Definition (CVF). |
ContentView |
getCvf()
Shorthand for getContentView() . |
String |
getDef()
Shorthand for getDefinition() . |
String |
getDefinition()
Returns the definition value (DEF). |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
String |
getSatui()
Shorthand for getSourceAttributeIdentifier() . |
Source |
getSource()
Returns the source for this Definition . |
String |
getSourceAttributeIdentifier()
Returns the source asserted attribute identifier (SATUI). |
Suppressible |
getSuppress()
Returns the suppressibility value (SUPPRESS). |
int |
hashCode()
Return a hash code based on key fields. |
boolean |
isObsolete()
Indicates whether or not this DefinitionImpl is obsolete. |
boolean |
isSuppressible()
Indicates whether or not this Atom is suppressible. |
void |
setAtom(Atom atom)
Sets the Atom related to this Definition . |
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 Definition . |
void |
setContentView(ContentView cvf)
Sets tbe ContentView definition for this Definition (CVF). |
void |
setCvf(ContentView cvf)
Shorthand for setContentView(ContentView) . |
void |
setDef(String def)
Shorthand for setDefinition(String) . |
void |
setDefinition(String def)
Sets the definition value (DEF). |
void |
setSatui(String satui)
Shorthand for setSourceAttributeIdentifier(String) . |
void |
setSource(Source source)
Sets the source for this Definition . |
void |
setSourceAttributeIdentifier(String satui)
Sets the source asserted attribute identifier (SATUI). |
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 |
Constructor Detail |
public DefinitionImpl()
Definition
.
public DefinitionImpl(Definition def)
Definition
from the specified Definition
.
def
- Definition
to be copiedMethod Detail |
public Atom getAtom()
Atom
related to this Definition
.
getAtom
in interface AtomElement
Atom
related to this Definition
public void setAtom(Atom atom)
Atom
related to this Definition
.
setAtom
in interface AtomElement
atom
- the Atom
related to this Definition
public String getAttributeIdentifier()
getAttributeIdentifier
in interface AttributeElement
public String getAtui()
getAttributeIdentifier()
.
getAtui
in interface AttributeElement
public void setAttributeIdentifier(String atui)
setAttributeIdentifier
in interface AttributeElement
atui
- the ATUIpublic void setAtui(String atui)
setAttributeIdentifier(String)
.
setAtui
in interface AttributeElement
atui
- the ATUIpublic String getSourceAttributeIdentifier()
getSourceAttributeIdentifier
in interface AttributeElement
public String getSatui()
getSourceAttributeIdentifier()
.
getSatui
in interface AttributeElement
public void setSourceAttributeIdentifier(String satui)
setSourceAttributeIdentifier
in interface AttributeElement
satui
- the SATUIpublic void setSatui(String satui)
setSourceAttributeIdentifier(String)
.
setSatui
in interface AttributeElement
satui
- the SATUIpublic Concept getConcept()
Concept
that holds this Definition
.
getConcept
in interface ConceptElement
Concept
that holds this Definition
public void setConcept(Concept concept)
Concept
that holds this Definition
.
setConcept
in interface ConceptElement
concept
- the Concept
that holds this Definition
public Source getSource()
Definition
.
getSource
in interface SourceElement
Source
public void setSource(Source source)
Definition
.
setSource
in interface SourceElement
source
- Source
public String getDefinition()
getDefinition
in interface Definition
public String getDef()
getDefinition()
.
getDef
in interface Definition
public void setDefinition(String def)
setDefinition
in interface Definition
def
- the definition valuepublic void setDef(String def)
setDefinition(String)
.
setDef
in interface Definition
def
- the definition valuepublic 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 boolean isObsolete()
DefinitionImpl
is obsolete.
isObsolete
in interface SuppressibleElement
true
if obsolete,
false
if not obsoletepublic ContentView getContentView()
ContentView
definition for this Definition
(CVF).
getContentView
in interface ContentViewElement
ContentView
definitionpublic void setContentView(ContentView cvf)
ContentView
definition for this Definition
(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 Definition
String
composed from the cui, aui, atui,
versioned source, satui, and def.public int hashCode()
public boolean equals(Object o)
true
if the specified object is
equal to this object. The specified object must be a
Definition
with matching key fields.
o
- an Object
to compare against
true
if Object o is equal
false
otherwisepublic int compareTo(Object o)
Definition
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 |