org.xspace.pojo
Class XSpaceItem

java.lang.Object
  extended byorg.xspace.pojo.XSpaceItem
All Implemented Interfaces:
java.io.Serializable

public class XSpaceItem
extends java.lang.Object
implements java.io.Serializable

An XSpaceItem is a wrapper for the value stored in an XSpace. A call to XSpaceService.get() returns an XSpaceItem object.

See Also:
Serialized Form

Field Summary
static java.lang.String TYPE_JAVA_OBJECT
           
static java.lang.String TYPE_STRING
           
static java.lang.String TYPE_XML
           
 
Constructor Summary
XSpaceItem()
           
 
Method Summary
 java.util.Date getDateCreated()
          Returns the date the key was first added to the XSpace
 int getId()
          Returns the internal ID of this XSpaceItem.
 java.io.Serializable getJavaObjectValue()
          Returns the Java object value.
 java.lang.String getKey()
          Returns the key
 long getLastModified()
          Returns the last modified timestamp
 java.lang.String getPermissions()
          Returns the permissions
 long getServerTimeStamp()
          Returns the server timestamp
 java.lang.String getType()
          Returns the type of this item.
 java.lang.String getValue()
          Returns the String value
 org.w3c.dom.Document getXML()
          Returns the XML document.
 int getXspaceId()
           
 void setDateCreated(java.util.Date dateCreated)
           
 void setId(int id)
           
 void setJavaObjectValue(java.io.Serializable value)
           
 void setKey(java.lang.String key)
           
 void setLastModified(long lastModified)
           
 void setPermissions(java.lang.String permissions)
           
 void setServerTimeStamp(long i)
           
 void setType(java.lang.String type)
           
 void setValue(java.lang.String value)
           
 void setXspaceId(int id)
          Returns the internal ID of the XSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_STRING

public static final java.lang.String TYPE_STRING
See Also:
Constant Field Values

TYPE_XML

public static final java.lang.String TYPE_XML
See Also:
Constant Field Values

TYPE_JAVA_OBJECT

public static final java.lang.String TYPE_JAVA_OBJECT
See Also:
Constant Field Values
Constructor Detail

XSpaceItem

public XSpaceItem()
Method Detail

getDateCreated

public java.util.Date getDateCreated()
Returns the date the key was first added to the XSpace

Returns:
the dateCreated.

setDateCreated

public void setDateCreated(java.util.Date dateCreated)
Parameters:
dateCreated - The dateCreated to set.

getId

public int getId()
Returns the internal ID of this XSpaceItem.

Returns:
Returns the internal id.

setId

public void setId(int id)
Parameters:
id - The internal id to set.

getKey

public java.lang.String getKey()
Returns the key

Returns:
the key.

setKey

public void setKey(java.lang.String key)
Parameters:
key - The key to set.

getLastModified

public long getLastModified()
Returns the last modified timestamp

Returns:
Returns the lastModified timestamp.

setLastModified

public void setLastModified(long lastModified)
Parameters:
lastModified - The lastModified to set.

getPermissions

public java.lang.String getPermissions()
Returns the permissions

Returns:
Returns the permissions.

setPermissions

public void setPermissions(java.lang.String permissions)
Parameters:
permissions - The permissions to set.

getType

public java.lang.String getType()
Returns the type of this item. The type is one of: String, XML or JavaObject

Returns:
the type. One of String, XML or JavaObject

setType

public void setType(java.lang.String type)
Parameters:
type - The type to set.

getValue

public java.lang.String getValue()
Returns the String value

Returns:
the value as string.

setValue

public void setValue(java.lang.String value)
Parameters:
value - The value to set.

getXML

public org.w3c.dom.Document getXML()
                            throws org.xspace.util.XSpaceException
Returns the XML document. Applicable only if type is XML.

Returns:
the value as XML
Throws:
org.xspace.util.XSpaceException

getJavaObjectValue

public java.io.Serializable getJavaObjectValue()
Returns the Java object value. Applicable only if type is JavaObject.

Returns:
the java value.

setJavaObjectValue

public void setJavaObjectValue(java.io.Serializable value)
Parameters:
value - The java value to set.

getXspaceId

public int getXspaceId()
Returns:
Returns the XSpace Id.

setXspaceId

public void setXspaceId(int id)
Returns the internal ID of the XSpace

Parameters:
id - The XspaceId to be set

getServerTimeStamp

public long getServerTimeStamp()
Returns the server timestamp

Returns:
the server timestamp

setServerTimeStamp

public void setServerTimeStamp(long i)