public class ZoneField extends SDPField implements TimeZoneAdjustment
Modifier and Type | Field and Description |
---|---|
protected SDPObjectList |
zoneAdjustments |
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 |
---|
ZoneField()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addZoneAdjustment(ZoneAdjustment za)
Add an element to the zone adjustment list.
|
Object |
clone()
Clones this object.
|
String |
encode()
Encode this structure into a canonical form.
|
boolean |
getTypedTime()
Returns whether the field will be output as a typed time or a integer value.
|
SDPObjectList |
getZoneAdjustments()
Get the zone adjustment list.
|
Hashtable |
getZoneAdjustments(boolean create)
Returns a Hashtable of adjustment times, where:
key = Date.
|
void |
setTypedTime(boolean typedTime)
Sets whether the field will be output as a typed time or a integer value.
|
void |
setZoneAdjustments(Hashtable map)
Sets the Hashtable of adjustment times, where:
key = Date.
|
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 SDPObjectList zoneAdjustments
public void addZoneAdjustment(ZoneAdjustment za)
za
- zone adjustment to add.public SDPObjectList getZoneAdjustments()
public String encode()
public Hashtable getZoneAdjustments(boolean create) throws SdpParseException
getZoneAdjustments
in interface TimeZoneAdjustment
create
- to setSdpParseException
public void setZoneAdjustments(Hashtable map) throws SdpException
setZoneAdjustments
in interface TimeZoneAdjustment
map
- Hashtable to setSdpException
- if the parameter is nullpublic void setTypedTime(boolean typedTime)
setTypedTime
in interface TimeZoneAdjustment
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 getTypedTime()
getTypedTime
in interface TimeZoneAdjustment
public Object clone()
GenericObject
clone
in interface Field
clone
in class GenericObject
Copyright © 2015. All Rights Reserved.