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

java.lang.Object
  extended by org.apache.muse.ws.dm.muws.impl.SimpleStateTransition
All Implemented Interfaces:
XmlSerializable, StateTransition

public class SimpleStateTransition
extends Object
implements StateTransition

SimpleStateTransition represents the muws2:StateTransition property defined by the WSDM State capability.

Author:
Dan Jemiolo (danj)

Constructor Summary
SimpleStateTransition(Element xml)
           
SimpleStateTransition(StateType previous, StateType entered)
           
 
Method Summary
 StateType getEnteredState()
           
 StateType getPreviousState()
           
 Date getTransitionTime()
           
 Element toXML()
           
 Element toXML(Document doc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleStateTransition

public SimpleStateTransition(Element xml)
                      throws BaseFault
Parameters:
xml - The DOM Element representing the state transition.
Throws:
BaseFault

SimpleStateTransition

public SimpleStateTransition(StateType previous,
                             StateType entered)
Parameters:
previous - The state the owning resource was in previously. This can be null for new resources that had no initial state.
entered - The state the owning resource just entered. This is usually equivalent to its current state.
Method Detail

getEnteredState

public StateType getEnteredState()
Specified by:
getEnteredState in interface StateTransition
Returns:
The state the resource entered during the transition.

getPreviousState

public StateType getPreviousState()
Specified by:
getPreviousState in interface StateTransition
Returns:
The state the resource left during the transition. This is null if there was no previous state.

getTransitionTime

public Date getTransitionTime()
Specified by:
getTransitionTime in interface StateTransition
Returns:
The time that the transition occurred.

toXML

public Element toXML()
Specified by:
toXML in interface XmlSerializable

toXML

public Element toXML(Document doc)
Specified by:
toXML in interface XmlSerializable


Copyright © 2013 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.