|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.umls.meta.impl.AttributeImpl
Default implementation of the Attribute
interface.
Nested Class Summary |
Nested classes inherited from class gov.nih.nlm.umls.meta.SourceElement |
SourceElement.BySourceComparator, SourceElement.BySourceRestrictor |
Field Summary | |
protected String |
key_fields
|
protected boolean |
key_fields_flag
|
Constructor Summary | |
AttributeImpl()
Instantiate an empty Attribute . |
|
AttributeImpl(Attribute att)
This is a copy constructor for Attribute . |
Method Summary | |
int |
compareTo(Object o)
Compares this Attribute to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
AttributeName |
getAtn()
Shorthand for getAttributeName() . |
String |
getAttributeIdentifier()
Returns the unique identifier (ATUI). |
AttributeName |
getAttributeName()
Returns the AttributeName (ATN). |
String |
getAttributeValue()
Returns the attribute value (ATV). |
String |
getAtui()
Returns the unique identifier (ATUI). |
String |
getAtv()
Shorthand for getAttributeValue() . |
Concept |
getConcept()
Returns the Concept that holds this Attribute . |
ContentView |
getContentView()
Returns tbe ContentView definition for this Attribute (CVF). |
ContentView |
getCvf()
Shorthand for getContentView() . |
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 Attribute . |
String |
getSourceAttributeIdentifier()
Returns the source asserted attribute identifier (SATUI). |
SourceIdentifierType |
getSourceIdentifierType()
Returns the SourceIdentifierType to which this element is connected. |
Suppressible |
getSuppress()
Returns the suppressibility value (SUPPRESS). |
int |
hashCode()
Return a hash code based on key fields. |
boolean |
isObsolete()
Indicates whether or not this AttributeImpl is obsolete. |
boolean |
isSuppressible()
Indicates whether or not this Attribute is suppressible. |
void |
setAtn(AttributeName atn)
Shorthand for setAttributeName(AttributeName) . |
void |
setAttributeIdentifier(String atui)
Sets the unique identifier (ATUI). |
void |
setAttributeName(AttributeName atn)
Sets the AttributeName (ATN). |
void |
setAttributeValue(String atv)
Sets the attribute value (ATV). |
void |
setAtui(String atui)
Shorthand for setAttributeIdentifier(String) . |
void |
setAtv(String atv)
Shorthand for setAttributeValue(String) . |
void |
setConcept(Concept concept)
Sets the Concept that holds this Attribute . |
void |
setContentView(ContentView cvf)
Sets tbe ContentView definition for this Attribute (CVF). |
void |
setCvf(ContentView cvf)
Shorthand for setContentView(ContentView) . |
void |
setSatui(String satui)
Shorthand for setSourceAttributeIdentifier(String) . |
void |
setSource(Source source)
Sets the source for this Attribute . |
void |
setSourceAttributeIdentifier(String satui)
Sets the source asserted attribute identifier (SATUI). |
void |
setSourceIdentifierType(SourceIdentifierType sit)
Sets the SourceIdentifierType to which this element is connected. |
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 |
Field Detail |
protected boolean key_fields_flag
protected String key_fields
Constructor Detail |
public AttributeImpl()
Attribute
.
public AttributeImpl(Attribute att)
Attribute
.
att
- Attribute
to be copiedMethod Detail |
public SourceIdentifierType getSourceIdentifierType()
SourceIdentifierType
to which this element is connected.
getSourceIdentifierType
in interface SourceIdentifierElement
SourceIdentifierType
to which this element is connectedpublic void setSourceIdentifierType(SourceIdentifierType sit)
SourceIdentifierType
to which this element is connected.
setSourceIdentifierType
in interface SourceIdentifierElement
sit
- the SourceIdentifierType
to which this element is connected.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 Attribute
.
getConcept
in interface ConceptElement
Concept
that holds this Attribute
public void setConcept(Concept concept)
Concept
that holds this Attribute
.
setConcept
in interface ConceptElement
concept
- the Concept
that holds this Attribute
public Source getSource()
Attribute
.
getSource
in interface SourceElement
Source
public void setSource(Source source)
Attribute
.
setSource
in interface SourceElement
source
- Source
public ContentView getContentView()
ContentView
definition for this Attribute
(CVF).
getContentView
in interface ContentViewElement
ContentView
definitionpublic void setContentView(ContentView cvf)
ContentView
definition for this Attribute
(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 AttributeName getAttributeName()
AttributeName
(ATN).
getAttributeName
in interface Attribute
AttributeName
public AttributeName getAtn()
getAttributeName()
.
getAtn
in interface Attribute
AttributeName
public void setAttributeName(AttributeName atn)
AttributeName
(ATN).
setAttributeName
in interface Attribute
atn
- the AttributeName
public void setAtn(AttributeName atn)
setAttributeName(AttributeName)
.
setAtn
in interface Attribute
atn
- the AttributeName
public String getAttributeValue()
getAttributeValue
in interface Attribute
public String getAtv()
getAttributeValue()
.
getAtv
in interface Attribute
public void setAttributeValue(String atv)
setAttributeValue
in interface Attribute
atv
- the attribute valuepublic void setAtv(String atv)
setAttributeValue(String)
.
setAtv
in interface Attribute
atv
- the attribute valuepublic Suppressible getSuppress()
getSuppress
in interface SuppressibleElement
Suppressible
valuepublic boolean isSuppressible()
Attribute
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()
AttributeImpl
is obsolete.
isObsolete
in interface SuppressibleElement
true
if obsolete,
false
if not obsoletepublic String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields
in interface Attribute
String
composed from the cui, atui,
versioned source, atn, atv, and satui.public int hashCode()
public boolean equals(Object o)
true
if the specified object is
equal to this object. The specified object must be an
Attribute
with matching key fields.
o
- an Object
to compare against
true
if Object o is equal
false
otherwisepublic int compareTo(Object o)
Attribute
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 |