|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nist.core.GenericObject
gov.nist.javax.sdp.fields.SDPObject
gov.nist.javax.sdp.fields.SDPField
gov.nist.javax.sdp.fields.RepeatField
public class RepeatField
Repeat SDP Field (part of the time field).
Field Summary |
---|
Fields inherited from interface 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 |
Constructor Summary | |
---|---|
RepeatField()
|
Method Summary | |
---|---|
void |
addOffset(TypedTime offset)
|
Object |
clone()
Clones this object. |
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. |
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. |
Methods inherited from class gov.nist.javax.sdp.fields.SDPField |
---|
getFieldName, getTypeChar, toString |
Methods inherited from class gov.nist.javax.sdp.fields.SDPObject |
---|
dbgPrint, debugDump, equals, match |
Methods inherited from class gov.nist.core.GenericObject |
---|
debugDump, encode, getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.sdp.Field |
---|
getTypeChar |
Constructor Detail |
---|
public RepeatField()
Method Detail |
---|
public void setRepeatInterval(TypedTime interval)
public void setActiveDuration(TypedTime duration)
public void addOffset(TypedTime offset)
public LinkedList getOffsets()
public int getRepeatInterval() throws SdpParseException
getRepeatInterval
in interface RepeatTime
SdpParseException
public void setRepeatInterval(int repeatInterval) throws SdpException
setRepeatInterval
in interface RepeatTime
repeatInterval
- the "repeat interval" in seconds.
SdpException
- if repeatInterval is <0public int getActiveDuration() throws SdpParseException
getActiveDuration
in interface RepeatTime
SdpParseException
public void setActiveDuration(int activeDuration) throws SdpException
setActiveDuration
in interface RepeatTime
activeDuration
- the "active duration" in seconds.
SdpException
- if the active duration is <0public int[] getOffsetArray() throws SdpParseException
getOffsetArray
in interface RepeatTime
SdpParseException
public void setOffsetArray(int[] offsets) throws SdpException
setOffsetArray
in interface RepeatTime
offsets
- array of repeat time offsets
SdpException
public boolean getTypedTime() throws SdpParseException
getTypedTime
in interface RepeatTime
SdpParseException
public void setTypedTime(boolean typedTime)
setTypedTime
in interface RepeatTime
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.public String encode()
gov.nist.core.GenericObject
encode
in class SDPField
public Object clone()
gov.nist.core.GenericObject
clone
in interface Field
clone
in class gov.nist.core.GenericObject
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |