org.apache.muse.ws.dm.muws.impl
Class SimpleState

java.lang.Object
  extended byorg.apache.muse.core.AbstractCapability
      extended byorg.apache.muse.ws.resource.impl.AbstractWsResourceCapability
          extended byorg.apache.muse.ws.dm.muws.impl.AbstractManageabilityCapability
              extended byorg.apache.muse.ws.dm.muws.impl.SimpleState
All Implemented Interfaces:
Capability, Initialization, InitializationParameters, ManageabilityCapability, Shutdown, State, WsResourceCapability, org.apache.muse.ws.resource.WsResourceCapabilityProperties

public class SimpleState
extends AbstractManageabilityCapability
implements State

SimpleState is Muse's default implementation of the WSDM State capability.

Author:
Dan Jemiolo (danj)

Field Summary
 
Fields inherited from interface org.apache.muse.ws.dm.muws.State
PROPERTIES
 
Constructor Summary
SimpleState()
           
 
Method Summary
 QName[] getPropertyNames()
          Concrete capability classes that define properties MUST override this method and provide the names of the properties.
 StateType getState()
           
 StateTransition getStateTransition()
           
 void setState(StateType state)
           
 
Methods inherited from class org.apache.muse.ws.dm.muws.impl.AbstractManageabilityCapability
initializeCompleted
 
Methods inherited from class org.apache.muse.ws.resource.impl.AbstractWsResourceCapability
createGettersAndSetters, deleteProperty, getGetter, getProperty, getPropertyElements, getSetter, getWsResource, initialize, insertProperty, invokeMethod, setResource, updateProperty
 
Methods inherited from class org.apache.muse.core.AbstractCapability
getActions, getCapabilityURI, getEnvironment, getInitializationParameter, getInitializationParameters, getLog, getMessageHandler, getPersistence, getResource, hasBeenInitialized, hasBeenShutdown, prepareShutdown, setCapabilityURI, setEnvironment, setInitializationParameters, setLog, setMessageHandler, setMessageHandlers, setPersistence, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.muse.ws.resource.WsResourceCapability
deleteProperty, getProperty, getWsResource, insertProperty, updateProperty
 
Methods inherited from interface org.apache.muse.core.Capability
getActions, getCapabilityURI, getEnvironment, getLog, getMessageHandler, getPersistence, getResource, initializeCompleted, prepareShutdown, setCapabilityURI, setEnvironment, setLog, setMessageHandlers, setPersistence, setResource
 
Methods inherited from interface org.apache.muse.core.Initialization
hasBeenInitialized, initialize
 
Methods inherited from interface org.apache.muse.core.InitializationParameters
getInitializationParameter, getInitializationParameters, setInitializationParameters
 
Methods inherited from interface org.apache.muse.core.Shutdown
hasBeenShutdown, shutdown
 

Constructor Detail

SimpleState

public SimpleState()
Method Detail

getPropertyNames

public QName[] getPropertyNames()
Description copied from interface: org.apache.muse.ws.resource.WsResourceCapabilityProperties
Concrete capability classes that define properties MUST override this method and provide the names of the properties.

Specified by:
getPropertyNames in interface org.apache.muse.ws.resource.WsResourceCapabilityProperties
Overrides:
getPropertyNames in class AbstractWsResourceCapability

getState

public StateType getState()
Specified by:
getState in interface State
Returns:
The current state of the owning resource; state types may have subtypes, and these values should be considered when evaluating the state.

getStateTransition

public StateTransition getStateTransition()
Specified by:
getStateTransition in interface State
Returns:
The record of the last state change experienced by the owning resource.

setState

public void setState(StateType state)
Specified by:
setState in interface State
Parameters:
state - The current state of the owning resource; this state may have subtypes. Changing the State will alter the muws2:StateTransition property as well.