|
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.TimeField
public class TimeField
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 | |
---|---|
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 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 |
---|
clone, 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 |
---|
clone, getTypeChar |
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 Time
SdpParseException
public Date getStop() throws SdpParseException
getStop
in interface Time
SdpParseException
public void setStop(Date stop) throws SdpException
setStop
in interface Time
stop
- start - the start time
SdpException
- if the date is nullpublic void setStart(Date start) throws SdpException
setStart
in interface Time
start
- start - the start time for the session.
SdpException
- if the date is nullpublic boolean getTypedTime()
getTypedTime
in interface Time
public void setTypedTime(boolean typedTime)
setTypedTime
in interface Time
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 boolean isZero()
isZero
in interface Time
public void setZero()
setZero
in interface Time
public String encode()
encode
in class SDPField
|
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 |