|
||||||||||
| 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.TimeField
public class TimeField
Time Field.
| Field Summary | |
|---|---|
protected long |
startTime
|
protected long |
stopTime
|
| 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 | |
|---|---|
TimeField()
|
|
| Method Summary | |
|---|---|
String |
encode()
Get the string encoded version of this object |
Date |
getStart()
Returns the start time of the conference/session. |
long |
getStartTime()
|
Date |
getStop()
Returns the stop time of the session |
long |
getStopTime()
|
boolean |
getTypedTime()
Returns whether the field will be output as a typed time or a integer value. |
boolean |
isZero()
Returns whether the start and stop times were set to zero (in NTP). |
void |
setStart(Date start)
Sets the start time of the conference/session. |
void |
setStartTime(long startTime)
Set the startTime member |
void |
setStop(Date stop)
Sets the stop time of the session. |
void |
setStopTime(long stopTime)
Set the stopTime member |
void |
setTypedTime(boolean typedTime)
Sets whether the field will be output as a typed time or a integer value. |
void |
setZero()
Sets the start and stop times to zero (in NTP). |
| 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, clone, 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 |
|---|
clone, getTypeChar |
| Field Detail |
|---|
protected long startTime
protected long stopTime
| Constructor Detail |
|---|
public TimeField()
| Method Detail |
|---|
public long getStartTime()
public long getStopTime()
public void setStartTime(long startTime)
public void setStopTime(long stopTime)
public Date getStart()
throws SdpParseException
getStart in interface TimeSdpParseException
public Date getStop()
throws SdpParseException
getStop in interface TimeSdpParseException
public void setStop(Date stop)
throws SdpException
setStop in interface Timestop - start - the start time
SdpException - if the date is null
public void setStart(Date start)
throws SdpException
setStart in interface Timestart - start - the start time for the session.
SdpException - if the date is nullpublic boolean getTypedTime()
getTypedTime in interface Timepublic void setTypedTime(boolean typedTime)
setTypedTime in interface TimetypedTime - 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 boolean isZero()
isZero in interface Timepublic void setZero()
setZero in interface Timepublic String encode()
encode in class SDPField
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||