|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uhn.hl7v2.model.AbstractType
ca.uhn.hl7v2.model.AbstractPrimitive
public abstract class AbstractPrimitive
Base class for Primitives. Performs validation in setValue().
Constructor Summary | |
---|---|
AbstractPrimitive(Message message)
|
Method Summary | |
---|---|
void |
clear()
Clears all data from this type |
java.lang.String |
encode()
Encodes this message using the parser returned by #getParser() |
java.lang.String |
getValue()
Returns a String representation of the value of this field. |
void |
parse(java.lang.String string)
Parses the string into this message using the parser returned by #getParser() |
void |
setValue(java.lang.String theValue)
Sets the value of this Primitive, first performing validation as specified by getMessage().getValidationContext() . |
java.lang.String |
toString()
Returns the value of getValue() |
Methods inherited from class ca.uhn.hl7v2.model.AbstractType |
---|
getExtraComponents, getMessage, getName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ca.uhn.hl7v2.model.Type |
---|
getExtraComponents, getMessage, getName |
Constructor Detail |
---|
public AbstractPrimitive(Message message)
message
- message to which this type belongsMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String getValue()
Primitive
getValue
in interface Primitive
Primitive.getValue()
public void setValue(java.lang.String theValue) throws DataTypeException
getMessage().getValidationContext()
. No validation is performed
if getMessage() returns null.
setValue
in interface Primitive
DataTypeException
- if the given value is not valid in this context.Primitive.setValue(String)
public java.lang.String encode() throws HL7Exception
#getParser()
encode
in interface Type
encode
in class AbstractType
HL7Exception
public void parse(java.lang.String string) throws HL7Exception
#getParser()
parse
in interface Type
parse
in class AbstractType
HL7Exception
public void clear()
clear
in interface Type
clear
in class AbstractType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |