com.ibm.portal.state.accessors.generic
Interface BooleanAccessorFactory

All Superinterfaces:
AccessorFactory

public interface BooleanAccessorFactory
extends AccessorFactory

Generic factory providing read-only and read-write accessors for state information which is represented by boolean flags.

Since:
5.1

Method Summary
 BooleanAccessor getBooleanAccessor(Node node, DocumentModel model)
          Returns an interface providing read access to an arbitrary boolean flag.
 BooleanAccessor getBooleanAccessor(StateHolder state)
          Returns an interface providing read access to an arbitrary boolean flag.
 BooleanAccessorController getBooleanAccessorController(Node node, DocumentController model)
          Returns an interface providing read-write access to an arbitrary boolean flag.
 BooleanAccessorController getBooleanAccessorController(StateHolderController state)
          Returns an interface providing read-write access to an arbitrary boolean flag.
 
Methods inherited from interface com.ibm.portal.state.accessors.AccessorFactory
compact
 

Method Detail

getBooleanAccessor

BooleanAccessor getBooleanAccessor(StateHolder state)
Returns an interface providing read access to an arbitrary boolean flag.

Parameters:
state - Read-only interface to untyped state document model.
Returns:
Read-only interface to a boolean flag.

getBooleanAccessor

BooleanAccessor getBooleanAccessor(Node node,
                                   DocumentModel model)
Returns an interface providing read access to an arbitrary boolean flag.

Parameters:
node - Node representing the boolean flag.
model - The document model which may contain the flag.
Returns:
Read-only interface to a boolean flag.

getBooleanAccessorController

BooleanAccessorController getBooleanAccessorController(StateHolderController state)
Returns an interface providing read-write access to an arbitrary boolean flag.

Parameters:
state - Read-write interface to untyped state document model.
Returns:
Read-write interface to a boolean flag.

getBooleanAccessorController

BooleanAccessorController getBooleanAccessorController(Node node,
                                                       DocumentController model)
Returns an interface providing read-write access to an arbitrary boolean flag.

Parameters:
node - Node representing the boolean flag.
model - Controller interface which allows for modifying the flag in the underlying document model.
Returns:
Read-write interface to a boolean flag.