public abstract class TM extends AbstractPrimitive
Modifier and Type | Method and Description |
---|---|
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.
|
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(String theValue)
Sets the value of this Primitive, first performing validation as specified
by
getMessage().getValidationContext() . |
accept, clear, encode, isEmpty, parse, toString
getExtraComponents, getMessage, getName, provideLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getExtraComponents, getMessage, getName
provideLocation
public void setValue(String theValue) throws DataTypeException
AbstractPrimitive
getMessage().getValidationContext()
. No validation is performed
if getMessage() returns null.
Note: as of the next HAPI release, the ValidationContext will be retrieved from getParser().getValidationContext(), which ultimately is the ValidationContext of the active HapiContext.
setValue
in interface Primitive
setValue
in class AbstractPrimitive
theValue
- the value to be setDataTypeException
- 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 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.Copyright © 2001–2017 University Health Network. All rights reserved.