org.jivesoftware.sparkimpl.plugin.scratchpad
Class Tasks

java.lang.Object
  extended by org.jivesoftware.sparkimpl.plugin.scratchpad.Tasks
All Implemented Interfaces:
org.jivesoftware.smackx.packet.PrivateData

public class Tasks
extends java.lang.Object
implements org.jivesoftware.smackx.packet.PrivateData

Author:
Derek DeMoro

Nested Class Summary
static class Tasks.Provider
          The IQ Provider for Tasks
 
Constructor Summary
Tasks()
          Required Empty Constructor to use Tasks.
 
Method Summary
 void addTask(Task task)
           
 java.lang.String getElementName()
          Returns the root element name.
 java.lang.String getNamespace()
          Returns the root element XML namespace.
static Task getTask(org.xmlpull.v1.XmlPullParser parser)
           
static Tasks getTaskList(org.jivesoftware.smack.XMPPConnection con)
           
 java.util.List getTasks()
           
static void main(java.lang.String[] args)
           
static void saveTasks(Tasks tasks, org.jivesoftware.smack.XMPPConnection con)
           
 void setTasks(java.util.List tasks)
           
 java.lang.String toXML()
          Returns the XML reppresentation of the PrivateData.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tasks

public Tasks()
Required Empty Constructor to use Tasks.

Method Detail

getTasks

public java.util.List getTasks()

setTasks

public void setTasks(java.util.List tasks)

addTask

public void addTask(Task task)

getElementName

public java.lang.String getElementName()
Returns the root element name.

Specified by:
getElementName in interface org.jivesoftware.smackx.packet.PrivateData
Returns:
the element name.

getNamespace

public java.lang.String getNamespace()
Returns the root element XML namespace.

Specified by:
getNamespace in interface org.jivesoftware.smackx.packet.PrivateData
Returns:
the namespace.

toXML

public java.lang.String toXML()
Returns the XML reppresentation of the PrivateData.

Specified by:
toXML in interface org.jivesoftware.smackx.packet.PrivateData
Returns:
the private data as XML.

getTask

public static Task getTask(org.xmlpull.v1.XmlPullParser parser)
                    throws java.lang.Exception
Throws:
java.lang.Exception

saveTasks

public static void saveTasks(Tasks tasks,
                             org.jivesoftware.smack.XMPPConnection con)

getTaskList

public static Tasks getTaskList(org.jivesoftware.smack.XMPPConnection con)

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception