|
||||||||||
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
ca.uhn.hl7v2.model.primitive.TM
public abstract class TM
Represents an HL7 TM (time) datatype.
Constructor Summary | |
---|---|
TM(Message theMessage)
|
Method Summary | |
---|---|
float |
getFractSecond()
Returns the fractional second value as a float. |
int |
getGMTOffset()
Returns the GMT offset value as an integer. |
int |
getHour()
Returns the hour as an integer. |
int |
getMinute()
Returns the minute as an integer. |
int |
getSecond()
Returns the second as an integer. |
java.lang.String |
getValue()
Returns a String representation of the value of this field. |
void |
setHourMinSecondPrecision(int hr,
int min,
float sec)
|
void |
setHourMinutePrecision(int hr,
int min)
|
void |
setHourPrecision(int hr)
|
void |
setOffset(int signedOffset)
|
void |
setValue(java.lang.String theValue)
Sets the value of this Primitive, first performing validation as specified by getMessage().getValidationContext() . |
Methods inherited from class ca.uhn.hl7v2.model.AbstractPrimitive |
---|
clear, encode, parse, toString |
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 TM(Message theMessage)
theMessage
- message to which this Type belongsMethod Detail |
---|
public void setValue(java.lang.String theValue) throws DataTypeException
AbstractPrimitive
getMessage().getValidationContext()
. No validation is performed
if getMessage() returns null.
setValue
in interface Primitive
setValue
in class AbstractPrimitive
DataTypeException
- if the value is incorrectly formatted and either validation is
enabled for this primitive or detail setters / getters have been called, forcing further
parsing.AbstractPrimitive.setValue(java.lang.String)
public java.lang.String getValue()
Primitive
getValue
in interface Primitive
getValue
in class AbstractPrimitive
AbstractPrimitive.getValue()
public void setHourPrecision(int hr) throws DataTypeException
DataTypeException
- if the value is incorrectly formatted. If validation is enabled, this
exception should be thrown at setValue(), but if not, detailed parsing may be deferred until
this method is called.CommonTM.setHourPrecision(int)
public void setHourMinutePrecision(int hr, int min) throws DataTypeException
DataTypeException
- if the value is incorrectly formatted. If validation is enabled, this
exception should be thrown at setValue(), but if not, detailed parsing may be deferred until
this method is called.CommonTM.setHourMinutePrecision(int, int)
public void setHourMinSecondPrecision(int hr, int min, float sec) throws DataTypeException
DataTypeException
- if the value is incorrectly formatted. If validation is enabled, this
exception should be thrown at setValue(), but if not, detailed parsing may be deferred until
this method is called.CommonTM.setHourMinSecondPrecision(int, int, float)
public void setOffset(int signedOffset) throws DataTypeException
DataTypeException
- if the value is incorrectly formatted. If validation is enabled, this
exception should be thrown at setValue(), but if not, detailed parsing may be deferred until
this method is called.CommonTM.setOffset(int)
public int getHour() throws DataTypeException
DataTypeException
- if the value is incorrectly formatted. If validation is enabled, this
exception should be thrown at setValue(), but if not, detailed parsing may be deferred until
this method is called.public int getMinute() throws DataTypeException
DataTypeException
- if the value is incorrectly formatted. If validation is enabled, this
exception should be thrown at setValue(), but if not, detailed parsing may be deferred until
this method is called.public int getSecond() throws DataTypeException
DataTypeException
- if the value is incorrectly formatted. If validation is enabled, this
exception should be thrown at setValue(), but if not, detailed parsing may be deferred until
this method is called.public float getFractSecond() throws DataTypeException
DataTypeException
- if the value is incorrectly formatted. If validation is enabled, this
exception should be thrown at setValue(), but if not, detailed parsing may be deferred until
this method is called.public int getGMTOffset() throws DataTypeException
DataTypeException
- if the value is incorrectly formatted. If validation is enabled, this
exception should be thrown at setValue(), but if not, detailed parsing may be deferred until
this method is called.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |