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

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

public class RepeatField
extends SDPField
implements javax.sdp.RepeatTime

Repeat SDP Field (part of the time 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
 
コンストラクタの概要
RepeatField()
           
 
メソッドの概要
 void addOffset(TypedTime offset)
           
 java.lang.String encode()
          Get the string encoded version of this object
 int getActiveDuration()
          Returns the "active duration" in seconds.
 int[] getOffsetArray()
          Returns the list of offsets.
 java.util.LinkedList getOffsets()
           
 int getRepeatInterval()
          Returns the "repeat interval" in seconds.
 boolean getTypedTime()
          Returns whether the field will be output as a typed time or a integer value.
 void setActiveDuration(int activeDuration)
          Sets the "active duration" in seconds.
 void setActiveDuration(TypedTime duration)
           
 void setOffsetArray(int[] offsets)
          Set the list of offsets.
 void setRepeatInterval(int repeatInterval)
          Set the "repeat interval" in seconds.
 void setRepeatInterval(TypedTime interval)
           
 void setTypedTime(boolean typedTime)
          Sets whether the field will be output as a typed time or a integer value.
 
クラス 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
 

コンストラクタの詳細

RepeatField

public RepeatField()
メソッドの詳細

setRepeatInterval

public void setRepeatInterval(TypedTime interval)

setActiveDuration

public void setActiveDuration(TypedTime duration)

addOffset

public void addOffset(TypedTime offset)

getOffsets

public java.util.LinkedList getOffsets()

getRepeatInterval

public int getRepeatInterval()
                      throws javax.sdp.SdpParseException
Returns the "repeat interval" in seconds.

定義:
インタフェース javax.sdp.RepeatTime 内の getRepeatInterval
戻り値:
the "repeat interval" in seconds.
例外:
javax.sdp.SdpParseException

setRepeatInterval

public void setRepeatInterval(int repeatInterval)
                       throws javax.sdp.SdpException
Set the "repeat interval" in seconds.

定義:
インタフェース javax.sdp.RepeatTime 内の setRepeatInterval
パラメータ:
repeatInterval - the "repeat interval" in seconds.
例外:
javax.sdp.SdpException - if repeatInterval is <0

getActiveDuration

public int getActiveDuration()
                      throws javax.sdp.SdpParseException
Returns the "active duration" in seconds.

定義:
インタフェース javax.sdp.RepeatTime 内の getActiveDuration
戻り値:
the "active duration" in seconds.
例外:
javax.sdp.SdpParseException

setActiveDuration

public void setActiveDuration(int activeDuration)
                       throws javax.sdp.SdpException
Sets the "active duration" in seconds.

定義:
インタフェース javax.sdp.RepeatTime 内の setActiveDuration
パラメータ:
activeDuration - the "active duration" in seconds.
例外:
javax.sdp.SdpException - if the active duration is <0

getOffsetArray

public int[] getOffsetArray()
                     throws javax.sdp.SdpParseException
Returns the list of offsets. These are relative to the start-time given in the Time object (t= field) with which this RepeatTime is associated.

定義:
インタフェース javax.sdp.RepeatTime 内の getOffsetArray
戻り値:
the list of offsets
例外:
javax.sdp.SdpParseException

setOffsetArray

public void setOffsetArray(int[] offsets)
                    throws javax.sdp.SdpException
Set the list of offsets. These are relative to the start-time given in the Time object (t= field) with which this RepeatTime is associated.

定義:
インタフェース javax.sdp.RepeatTime 内の setOffsetArray
パラメータ:
offsets - array of repeat time offsets
例外:
javax.sdp.SdpException

getTypedTime

public boolean getTypedTime()
                     throws javax.sdp.SdpParseException
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.RepeatTime 内の getTypedTime
戻り値:
true, if the field will be output as a typed time; false, if as an integer value.
例外:
javax.sdp.SdpParseException

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

encode

public java.lang.String encode()
クラス GenericObject の記述:
Get the string encoded version of this object

定義:
クラス SDPField 内の encode