public class RepeatField extends SDPField implements RepeatTime
| Modifier and Type | Field and Description |
|---|---|
protected TypedTime |
activeDuration |
protected SDPObjectList |
offsets |
protected TypedTime |
repeatInterval |
CORE_PACKAGE, SDPFIELDS_PACKAGEAND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentationATTRIBUTE_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 and Description |
|---|
RepeatField() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getFieldName, getTypeChar, toStringdbgPrint, debugDump, equals, getStringRepresentation, initSprint, match, sprintdbgPrint, dbgPrint, debugDump, encode, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprintfinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTypeCharprotected TypedTime repeatInterval
protected TypedTime activeDuration
protected SDPObjectList offsets
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 RepeatTimeSdpParseExceptionpublic void setRepeatInterval(int repeatInterval)
throws SdpException
setRepeatInterval in interface RepeatTimerepeatInterval - the "repeat interval" in seconds.SdpException - if repeatInterval is <0public int getActiveDuration()
throws SdpParseException
getActiveDuration in interface RepeatTimeSdpParseExceptionpublic void setActiveDuration(int activeDuration)
throws SdpException
setActiveDuration in interface RepeatTimeactiveDuration - the "active duration" in seconds.SdpException - if the active duration is <0public int[] getOffsetArray()
throws SdpParseException
getOffsetArray in interface RepeatTimeSdpParseExceptionpublic void setOffsetArray(int[] offsets)
throws SdpException
setOffsetArray in interface RepeatTimeoffsets - array of repeat time offsetsSdpExceptionpublic 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()
GenericObjectpublic Object clone()
GenericObjectclone in interface Fieldclone in class GenericObjectCopyright © 2018. All Rights Reserved.