|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lastbamboo.common.sdp.GenericObject
org.lastbamboo.common.sdp.fields.SDPObject
org.lastbamboo.common.sdp.fields.SDPField
org.lastbamboo.common.sdp.fields.RepeatField
public class RepeatField
Repeat SDP Field (part of the time field).
| Field Summary | |
|---|---|
protected TypedTime |
activeDuration
|
protected SDPObjectList |
offsets
|
protected TypedTime |
repeatInterval
|
| Fields inherited from class org.lastbamboo.common.sdp.fields.SDPField |
|---|
fieldName |
| Fields inherited from class org.lastbamboo.common.sdp.GenericObject |
|---|
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, immutableClassNames, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation |
| Fields inherited from interface org.lastbamboo.common.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 org.lastbamboo.common.sdp.fields.SDPField |
|---|
getFieldName, getTypeChar, toString |
| Methods inherited from class org.lastbamboo.common.sdp.fields.SDPObject |
|---|
dbgPrint, debugDump, equals, getStringRepresentation, initSprint, match, merge, replace, replace, replace, replace, sprint |
| Methods inherited from class org.lastbamboo.common.sdp.GenericObject |
|---|
Assert, dbgPrint, dbgPrint, debugDump, getIndentation, getMatcher, isMySubclass, makeClone, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.lastbamboo.common.sdp.api.Field |
|---|
getTypeChar |
| Field Detail |
|---|
protected TypedTime repeatInterval
protected TypedTime activeDuration
protected SDPObjectList offsets
| 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 RepeatTimeSdpParseException
public void setRepeatInterval(int repeatInterval)
throws SdpException
setRepeatInterval in interface RepeatTimerepeatInterval - the "repeat interval" in seconds.
SdpException - if repeatInterval is <0
public int getActiveDuration()
throws SdpParseException
getActiveDuration in interface RepeatTimeSdpParseException
public void setActiveDuration(int activeDuration)
throws SdpException
setActiveDuration in interface RepeatTimeactiveDuration - the "active duration" in seconds.
SdpException - if the active duration is <0
public int[] getOffsetArray()
throws SdpParseException
getOffsetArray in interface RepeatTimeSdpParseException
public void setOffsetArray(int[] offsets)
throws SdpException
setOffsetArray in interface RepeatTimeoffsets - array of repeat time offsets
SdpException
public boolean getTypedTime()
throws SdpParseException
getTypedTime in interface RepeatTimeSdpParseExceptionpublic void setTypedTime(boolean typedTime)
setTypedTime in interface RepeatTimetypedTime - 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()
GenericObject
encode in class SDPFieldpublic Object clone()
GenericObject
clone in interface Fieldclone in class GenericObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||