railo.runtime.text.xml.storage
Class StorageItem

java.lang.Object
  extended by railo.runtime.text.xml.storage.StorageItem

public abstract class StorageItem
extends Object

A Object to store to XML File


Constructor Summary
StorageItem()
           
 
Method Summary
 Date getDate(String key)
          gets a value from the storage item as Date Object
 DateTime getDateTime(String key)
          gets a value from the storage item as Date Object
 int getInt(String key)
          gets a value from the storage item as int
 String getString(String key)
          gets a value from the storage item as String
 Time getTime(String key)
          gets a value from the storage item as Time Object
 void setDate(String key, Date value)
          sets a value to the storage item as Date Object
 void setDateTime(String key, DateTime value)
          sets a value to the storage item as DateTime Object
 void setInt(String key, int value)
          sets a value to the storage item as int
 void setString(String key, String value)
          sets a value to the storage item as String
 void setTime(String key, Time value)
          sets a value to the storage item as Time Object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageItem

public StorageItem()
Method Detail

getString

public String getString(String key)
                 throws StorageException
gets a value from the storage item as String

Parameters:
key - key of the value to get
Returns:
matching value
Throws:
StorageException

getInt

public int getInt(String key)
           throws StorageException
gets a value from the storage item as int

Parameters:
key - key of the value to get
Returns:
matching value
Throws:
StorageException

getDate

public Date getDate(String key)
             throws StorageException
gets a value from the storage item as Date Object

Parameters:
key - key of the value to get
Returns:
matching value
Throws:
StorageException

getTime

public Time getTime(String key)
             throws StorageException
gets a value from the storage item as Time Object

Parameters:
key - key of the value to get
Returns:
matching value
Throws:
StorageException

getDateTime

public DateTime getDateTime(String key)
                     throws StorageException
gets a value from the storage item as Date Object

Parameters:
key - key of the value to get
Returns:
matching value
Throws:
StorageException

setString

public void setString(String key,
                      String value)
               throws StorageException
sets a value to the storage item as String

Parameters:
key - key of the value to set
value - value to set
Throws:
StorageException

setInt

public void setInt(String key,
                   int value)
            throws StorageException
sets a value to the storage item as int

Parameters:
key - key of the value to set
value - value to set
Throws:
StorageException

setDate

public void setDate(String key,
                    Date value)
             throws StorageException
sets a value to the storage item as Date Object

Parameters:
key - key of the value to set
value - value to set
Throws:
StorageException

setTime

public void setTime(String key,
                    Time value)
             throws StorageException
sets a value to the storage item as Time Object

Parameters:
key - key of the value to set
value - value to set
Throws:
StorageException

setDateTime

public void setDateTime(String key,
                        DateTime value)
                 throws StorageException
sets a value to the storage item as DateTime Object

Parameters:
key - key of the value to set
value - value to set
Throws:
StorageException


Copyright © 2012 Railo