Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.servlet.state
Class StateImpl

java.lang.Object
  |
  +--oracle.cabo.servlet.state.StateImpl
All Implemented Interfaces:
MutableState, java.io.Serializable, State

public abstract class StateImpl
extends java.lang.Object
implements MutableState

A default implementation of the State interface.

See Also:
Serialized Form

Constructor Summary
StateImpl()
          Creates a StateImpl.
 
Method Summary
 void expire()
          Invalidate this state object.
abstract  java.lang.String getID()
          Returns the ID of this state.
abstract  StateManager getManager()
          Gets the state manager that created and maintains this State.
 java.lang.Object getValue(java.lang.Object key)
          Gets a value stored on the State.
 boolean isExpired()
          Tests whether the State has been expired.
 java.util.Enumeration keys()
          Returns an enumeration of value keys, or null if none have been added.
 void putValue(java.lang.Object key, java.lang.Object value)
          Stores a value on the MutableState.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StateImpl

public StateImpl()
Creates a StateImpl.
Method Detail

expire

public void expire()
Description copied from interface: State
Invalidate this state object. Once a State has been invalidated, it can no longer be retrieved from its StateManager.
Specified by:
expire in interface State

isExpired

public boolean isExpired()
Description copied from interface: State
Tests whether the State has been expired.
Specified by:
isExpired in interface State

getID

public abstract java.lang.String getID()
Description copied from interface: State
Returns the ID of this state.
Specified by:
getID in interface State

getManager

public abstract StateManager getManager()
Description copied from interface: State
Gets the state manager that created and maintains this State.
Specified by:
getManager in interface State

getValue

public java.lang.Object getValue(java.lang.Object key)
Description copied from interface: State
Gets a value stored on the State.
Specified by:
getValue in interface State
Following copied from interface: oracle.cabo.servlet.state.State
See Also:
MutableState.putValue(java.lang.Object, java.lang.Object)

putValue

public void putValue(java.lang.Object key,
                     java.lang.Object value)
Description copied from interface: MutableState
Stores a value on the MutableState. Null values are allowed.
Specified by:
putValue in interface MutableState

keys

public java.util.Enumeration keys()
Returns an enumeration of value keys, or null if none have been added.
Specified by:
keys in interface State

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.