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

java.lang.Object
  上位を拡張 gov.nist.core.GenericObject
      上位を拡張 gov.nist.javax.sdp.fields.SDPObject
          上位を拡張 gov.nist.javax.sdp.fields.SDPField
              上位を拡張 gov.nist.javax.sdp.fields.TimeField
すべての実装されたインタフェース:
SDPFieldNames, java.io.Serializable, java.lang.Cloneable, javax.sdp.Field, javax.sdp.Time

public class TimeField
extends SDPField
implements javax.sdp.Time

Time Field.

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

フィールドの概要
 
インタフェース 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
 
コンストラクタの概要
TimeField()
           
 
メソッドの概要
 java.lang.String encode()
          Get the string encoded version of this object
 java.util.Date getStart()
          Returns the start time of the conference/session.
 long getStartTime()
           
 java.util.Date getStop()
          Returns the stop time of the session
 long getStopTime()
           
 boolean getTypedTime()
          Returns whether the field will be output as a typed time or a integer value.
 boolean isZero()
          Returns whether the start and stop times were set to zero (in NTP).
 void setStart(java.util.Date start)
          Sets the start time of the conference/session.
 void setStartTime(long startTime)
          Set the startTime member
 void setStop(java.util.Date stop)
          Sets the stop time of the session.
 void setStopTime(long stopTime)
          Set the stopTime member
 void setTypedTime(boolean typedTime)
          Sets whether the field will be output as a typed time or a integer value.
 void setZero()
          Sets the start and stop times to zero (in NTP).
 
クラス 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
 

コンストラクタの詳細

TimeField

public TimeField()
メソッドの詳細

getStartTime

public long getStartTime()

getStopTime

public long getStopTime()

setStartTime

public void setStartTime(long startTime)
Set the startTime member


setStopTime

public void setStopTime(long stopTime)
Set the stopTime member


getStart

public java.util.Date getStart()
                        throws javax.sdp.SdpParseException
Returns the start time of the conference/session.

定義:
インタフェース javax.sdp.Time 内の getStart
戻り値:
the date
例外:
javax.sdp.SdpParseException

getStop

public java.util.Date getStop()
                       throws javax.sdp.SdpParseException
Returns the stop time of the session

定義:
インタフェース javax.sdp.Time 内の getStop
戻り値:
the stop time of the session.
例外:
javax.sdp.SdpParseException

setStop

public void setStop(java.util.Date stop)
             throws javax.sdp.SdpException
Sets the stop time of the session.

定義:
インタフェース javax.sdp.Time 内の setStop
パラメータ:
stop - start - the start time
例外:
javax.sdp.SdpException - if the date is null

setStart

public void setStart(java.util.Date start)
              throws javax.sdp.SdpException
Sets the start time of the conference/session.

定義:
インタフェース javax.sdp.Time 内の setStart
パラメータ:
start - start - the start time for the session.
例外:
javax.sdp.SdpException - if the date is null

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.Time 内の getTypedTime
戻り値:
true, if the field will be output as a typed time; false, if as an integer value.

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.Time 内の 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.

isZero

public boolean isZero()
Returns whether the start and stop times were set to zero (in NTP).

定義:
インタフェース javax.sdp.Time 内の isZero
戻り値:
boolean

setZero

public void setZero()
Sets the start and stop times to zero (in NTP).

定義:
インタフェース javax.sdp.Time 内の setZero

encode

public java.lang.String encode()
Get the string encoded version of this object

定義:
クラス SDPField 内の encode
導入されたバージョン:
v1.0