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_PACKAGE
AND, 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, stringRepresentation
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 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, toString
dbgPrint, debugDump, equals, getStringRepresentation, initSprint, match, sprint
dbgPrint, dbgPrint, debugDump, encode, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTypeChar
protected 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 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 offsetsSdpException
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()
GenericObject
public Object clone()
GenericObject
clone
in interface Field
clone
in class GenericObject
Copyright © 2018. All Rights Reserved.