gov.nist.javax.sdp.fields
クラス ZoneField

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
すべての実装されたインタフェース:
SDPFieldNames, java.io.Serializable, java.lang.Cloneable, javax.sdp.Field, javax.sdp.TimeZoneAdjustment

public class ZoneField
extends SDPField
implements javax.sdp.TimeZoneAdjustment

Z= SDP field.

バージョン:
JSR141-PUBLIC-REVIEW (subject to change).
作成者:
Olivier Deruelle , M. Ranganathan
This code is in the public domain.
関連項目:
直列化された形式

フィールドの概要
 
インタフェース gov.nist.javax.sdp.fields.SDPFieldNames から継承されたフィールド
ATTRIBUTE_FIELD, BANDWIDTH_FIELD, CONNECTION_FIELD, EMAIL_FIELD, INFORMATION_FIELD, KEY_FIELD, MEDIA_FIELD, ORIGIN_FIELD, PHONE_FIELD, PROTO_VERSION_FIELD, REPEAT_FIELD, SESSION_NAME_FIELD, TIME_FIELD, URI_FIELD, ZONE_FIELD
 
コンストラクタの概要
ZoneField()
          Constructor.
 
メソッドの概要
 void addZoneAdjustment(ZoneAdjustment za)
          Add an element to the zone adjustment list.
 java.lang.String encode()
          Encode this structure into a canonical form.
 boolean getTypedTime()
          Returns whether the field will be output as a typed time or a integer value.
 SDPObjectList getZoneAdjustments()
          Get the zone adjustment list.
 java.util.Hashtable getZoneAdjustments(boolean create)
          Returns a Hashtable of adjustment times, where: key = Date.
 void setTypedTime(boolean typedTime)
          Sets whether the field will be output as a typed time or a integer value.
 void setZoneAdjustments(java.util.Hashtable map)
          Sets the Hashtable of adjustment times, where: key = Date.
 
クラス gov.nist.javax.sdp.fields.SDPField から継承されたメソッド
getFieldName, getTypeChar, toString
 
クラス gov.nist.javax.sdp.fields.SDPObject から継承されたメソッド
clone, dbgPrint, debugDump, equals, match, merge, replace, replace, replace, replace
 
クラス gov.nist.core.GenericObject から継承されたメソッド
debugDump, getClassFromName, getMatcher, isMySubclass, setMatcher
 
クラス java.lang.Object から継承されたメソッド
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
インタフェース javax.sdp.Field から継承されたメソッド
clone, getTypeChar
 

コンストラクタの詳細

ZoneField

public ZoneField()
Constructor.

メソッドの詳細

addZoneAdjustment

public void addZoneAdjustment(ZoneAdjustment za)
Add an element to the zone adjustment list.

パラメータ:
za - zone adjustment to add.

getZoneAdjustments

public SDPObjectList getZoneAdjustments()
Get the zone adjustment list.

戻り値:
the list of zone adjustments.

encode

public java.lang.String encode()
Encode this structure into a canonical form.

定義:
クラス SDPField 内の encode

getZoneAdjustments

public java.util.Hashtable getZoneAdjustments(boolean create)
                                       throws javax.sdp.SdpParseException
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.

定義:
インタフェース javax.sdp.TimeZoneAdjustment 内の getZoneAdjustments
パラメータ:
create - to set
戻り値:
create - when true, an empty Hashtable is created, if it is null.
例外:
javax.sdp.SdpParseException

setZoneAdjustments

public void setZoneAdjustments(java.util.Hashtable map)
                        throws javax.sdp.SdpException
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.

定義:
インタフェース javax.sdp.TimeZoneAdjustment 内の setZoneAdjustments
パラメータ:
map - Hashtable to set
例外:
javax.sdp.SdpException - if the parameter is null

setTypedTime

public void setTypedTime(boolean typedTime)
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)

定義:
インタフェース javax.sdp.TimeZoneAdjustment 内の setTypedTime
パラメータ:
typedTime - typedTime - if set true, the start and stop times will be output in an optimal typed time format; if false, the times will be output as integers.

getTypedTime

public boolean getTypedTime()
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)

定義:
インタフェース javax.sdp.TimeZoneAdjustment 内の getTypedTime
戻り値:
true, if the field will be output as a typed time; false, if as an integer value.