|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.common.pim.vcalendar.BasicVCalendarParserListener
public abstract class BasicVCalendarParserListener
This class implements the a basic vCalendar parser listener which manages the parsing of common properties shared by the vCalendar 1.0 and iCalendar (vCalendar 2.0) formats, and fills those common properties to a JSR75 PIMItem object.
Assumptions:
NOTE: Implementations of the iCalendar and vCalendar parser listeners should extend this class.
Field Summary | |
---|---|
protected VAlarm |
alarm
|
protected long |
alarmEndRelatedTime
|
protected long |
alarmStartRelatedTime
Specifies the alarm related times, used to compute the alarm interval |
protected boolean |
allDay
Check whether this is an allday event |
protected PIMItem |
pimItem
|
protected PIMList |
pimList
|
protected Utils |
pimUtils
|
Constructor Summary | |
---|---|
BasicVCalendarParserListener(PIMItem pimItem)
The construtor accepts a PIMItem object that will be
populated of all the common vCalendar properties. |
Method Summary | |
---|---|
protected void |
addAttendee(java.lang.String value)
Called when a new attendee is found during the parsing. |
void |
addEventProperty(ParserProperty property)
|
void |
addToDoProperty(ParserProperty property)
|
protected java.lang.String |
getCharset(ArrayList params)
|
protected java.lang.String |
getClearValue(ParserProperty property)
Get the clear value from ParserProperty: unfolded, decoded, unescaped |
protected java.lang.String |
getEncoding(ArrayList params)
|
protected java.lang.String |
getParameter(ArrayList params,
java.lang.String paramName)
Get a parameter value from the specified params array |
protected void |
setClass(int pimField,
java.lang.String value)
|
protected void |
setEventAlarm(VAlarm alarm)
|
protected void |
setLocation(java.lang.String value)
|
protected void |
setNote(int pimField,
java.lang.String value)
|
protected void |
setPriority(java.lang.String value)
|
protected void |
setRevision(int pimField,
java.lang.String value)
|
protected void |
setStatus(java.lang.String value)
|
protected void |
setSummary(int pimField,
java.lang.String value)
|
protected void |
setUID(int pimField,
java.lang.String value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PIMItem pimItem
protected PIMList pimList
protected Utils pimUtils
protected boolean allDay
protected long alarmStartRelatedTime
protected long alarmEndRelatedTime
protected VAlarm alarm
Constructor Detail |
---|
public BasicVCalendarParserListener(PIMItem pimItem)
PIMItem
object that will be
populated of all the common vCalendar properties.
pimItem
- the PIMItem objectMethod Detail |
---|
protected void addAttendee(java.lang.String value)
value
- public void addEventProperty(ParserProperty property) throws java.lang.Exception
java.lang.Exception
public void addToDoProperty(ParserProperty property) throws java.lang.Exception
java.lang.Exception
protected void setSummary(int pimField, java.lang.String value)
protected void setRevision(int pimField, java.lang.String value)
protected void setNote(int pimField, java.lang.String value)
protected void setClass(int pimField, java.lang.String value)
protected void setUID(int pimField, java.lang.String value)
protected void setLocation(java.lang.String value)
protected void setStatus(java.lang.String value)
protected void setPriority(java.lang.String value)
protected void setEventAlarm(VAlarm alarm) throws java.lang.Exception
java.lang.Exception
protected java.lang.String getClearValue(ParserProperty property)
property
-
protected java.lang.String getParameter(ArrayList params, java.lang.String paramName)
params
- the array of the paramsparamName
- the param name
protected java.lang.String getEncoding(ArrayList params)
protected java.lang.String getCharset(ArrayList params)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |