|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dcm4che2.audit.message.CodeElement
public class CodeElement
Coded value.
Field Summary | |
---|---|
protected java.lang.String |
name
|
Constructor Summary | |
---|---|
protected |
CodeElement(java.lang.String name,
java.lang.String code)
|
protected |
CodeElement(java.lang.String name,
java.lang.String code,
boolean readonly)
|
protected |
CodeElement(java.lang.String name,
java.lang.String code,
java.lang.String codeSystemName,
java.lang.String displayName)
Used by derived classes to instantiate Code constants. |
Method Summary | |
---|---|
protected void |
addAttribute(java.lang.String name,
byte[] val,
boolean optional)
|
protected void |
addAttribute(java.lang.String name,
java.util.Date val,
boolean optional)
|
protected void |
addAttribute(java.lang.String name,
java.lang.Object val,
boolean optional)
|
protected java.lang.Object |
getAttribute(java.lang.String name)
|
java.lang.String |
getCode()
|
java.lang.String |
getCodeSystem()
|
java.lang.String |
getCodeSystemName()
|
java.lang.String |
getDisplayName()
|
java.lang.String |
getOriginalText()
|
protected boolean |
isEmpty()
|
void |
output(java.io.Writer out)
|
protected void |
outputChilds(java.io.Writer out,
java.util.List<? extends org.dcm4che2.audit.message.BaseElement> childs)
|
protected void |
outputContent(java.io.Writer out)
Allows subclasses to write content to the output. |
CodeElement |
setCodeSystem(java.lang.String codeSystem)
Sets OID reference. |
CodeElement |
setCodeSystemName(java.lang.String codeSystemName)
Sets name of the coding system. |
CodeElement |
setDisplayName(java.lang.String displayName)
Sets the value to be used in displays and reports. |
CodeElement |
setOriginalText(java.lang.String originalText)
Sets original Text Input value that was translated to this code. |
java.lang.String |
toString()
|
java.lang.String |
toString(int initialSize)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String name
Constructor Detail |
---|
protected CodeElement(java.lang.String name, java.lang.String code)
protected CodeElement(java.lang.String name, java.lang.String code, java.lang.String codeSystemName, java.lang.String displayName)
protected CodeElement(java.lang.String name, java.lang.String code, boolean readonly)
Method Detail |
---|
public final java.lang.String getCode()
public final java.lang.String getCodeSystem()
public final CodeElement setCodeSystem(java.lang.String codeSystem)
codeSystem
- OID reference
public final java.lang.String getCodeSystemName()
public final CodeElement setCodeSystemName(java.lang.String codeSystemName)
codeSystemName
- name of the coding system
public final java.lang.String getDisplayName()
public final CodeElement setDisplayName(java.lang.String displayName)
displayName
- value to be used in displays and reports
public final java.lang.String getOriginalText()
public final CodeElement setOriginalText(java.lang.String originalText)
originalText
- value that was translated to this code
protected void addAttribute(java.lang.String name, java.lang.Object val, boolean optional)
protected void addAttribute(java.lang.String name, java.util.Date val, boolean optional)
protected void addAttribute(java.lang.String name, byte[] val, boolean optional)
protected java.lang.Object getAttribute(java.lang.String name)
public void output(java.io.Writer out) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int initialSize)
protected boolean isEmpty()
protected void outputContent(java.io.Writer out) throws java.io.IOException
isEmpty()
should also be overridden
to return false
, otherwise this method will not be called.
out
- the writer to write the output to.
java.io.IOException
- thrown by derived classes if an error occurs.protected void outputChilds(java.io.Writer out, java.util.List<? extends org.dcm4che2.audit.message.BaseElement> childs) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |