| java.lang.Object gov.nist.core.GenericObject gov.nist.javax.sdp.fields.SDPObject gov.nist.javax.sdp.fields.SDPField gov.nist.javax.sdp.fields.ZoneField
Constructor Summary | |
public | ZoneField() Default onstructor. |
ZoneField | public ZoneField()(Code) | | Default onstructor.
|
addZoneAdjustment | public void addZoneAdjustment(ZoneAdjustment za)(Code) | | Adds an element to the zone adjustment list.
Parameters: za - zone adjustment to add. |
clone | public Object clone()(Code) | | Copies the current instance.
the copy of this object |
encode | public String encode()(Code) | | Encodes this structure into a canonical form.
encoded string of object contents |
getTypedTime | public boolean getTypedTime()(Code) | | Returns whether the field will be output as a typed time or a
integer value.
Typed time is formatted as an integer followed by a unit character.
The unit indicates an appropriate multiplier for
the integer.
The following unit types are allowed.
d - days (86400 seconds)
h - hours (3600 seconds)
m - minutes (60 seconds)
s - seconds ( 1 seconds)
true, if the field will be output as a typed time;false, if as an integer value. |
getZoneAdjustments | public SDPObjectList getZoneAdjustments()(Code) | | Gets the zone adjustment list.
the list of zone adjustments. |
getZoneAdjustments | public Hashtable getZoneAdjustments(boolean create) throws SdpParseException(Code) | | Returns a Hashtable of adjustment times, where:
key = Date. This is the equivalent of the decimal NTP time value.
value = Int Adjustment. This is a relative time value in seconds.
Parameters: create - to set throws: SdpParseException - if a parsing error occurs create when true, an empty Hashtable is created, if it is null. |
setTypedTime | public void setTypedTime(boolean typedTime)(Code) | | Sets whether the field will be output as a typed time or a integer value.
Typed time is formatted as an integer followed by a unit character.
The unit indicates an appropriate multiplier for
the integer.
The following unit types are allowed.
d - days (86400 seconds)
h - hours (3600 seconds)
m - minutes (60 seconds)
s - seconds ( 1 seconds)
Parameters: typedTime - typedTime - if set true, the startand stop times will beoutput in an optimal typed time format; if false, thetimes will be output as integers. |
setZoneAdjustments | public void setZoneAdjustments(Hashtable map) throws SdpException(Code) | | Sets the Hashtable of adjustment times, where:
key = Date. This is the equivalent of the decimal NTP time value.
value = Int Adjustment. This is a relative time value in seconds.
Parameters: map - Hashtable to set throws: SdpException - if the parameter is null |
|
|