org.jivesoftware.sparkimpl.plugin.scratchpad
Class PrivateNotes

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

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

Author:
Derek DeMoro

Nested Class Summary
static class PrivateNotes.Provider
          The IQ Provider for BookmarkStorage.
 
Constructor Summary
PrivateNotes()
          Required Empty Constructor to use Bookmarks.
 
Method Summary
 java.lang.String getElementName()
          Returns the root element name.
 java.lang.String getNamespace()
          Returns the root element XML namespace.
 java.lang.String getNotes()
           
static PrivateNotes getPrivateNotes()
           
static void savePrivateNotes(PrivateNotes notes)
           
 void setNotes(java.lang.String notes)
           
 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

PrivateNotes

public PrivateNotes()
Required Empty Constructor to use Bookmarks.

Method Detail

getNotes

public java.lang.String getNotes()

setNotes

public void setNotes(java.lang.String notes)

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.

savePrivateNotes

public static void savePrivateNotes(PrivateNotes notes)

getPrivateNotes

public static PrivateNotes getPrivateNotes()