Java Doc for WMObjectState.java in  » Workflow-Engines » obe-1.0 » org » wfmc » wapi » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » obe 1.0 » org.wfmc.wapi 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.wfmc.wapi.WMObjectState

All known Subclasses:   org.wfmc.wapi.WMActivityInstanceState,  org.wfmc.wapi.WMProcessInstanceState,  org.wfmc.wapi.WMProcessDefinitionState,  org.wfmc.wapi.WMWorkItemState,
WMObjectState
abstract public class WMObjectState implements Serializable(Code)
Abstract base that represents the state of an object.
author:
   Adrian Price


Field Summary
final public static  intDEFAULT_INT
     Signifies that the object remains in its current state.
final public static  intFORCED_ACTION
     Action is illegal to API caller, but is being forced by the engine.
final public static  intILLEGAL_ACTION
     Action is invalid for the current state.
final public static  StringMESSAGE
    
final public static  intNO_ACTION
     Action does not cause a state transition.
protected  int_state
     The object state code.

Constructor Summary
protected  WMObjectState(int state)
     Construct a new WMObjectState.

Method Summary
final public  intcheckTransition(WMObjectState newState, boolean throwException)
     Returns the action required to transition to a specified state.
Parameters:
  newState - The new state required.
Parameters:
  throwException - Causes an exception to be thrown if the transitionwould be illegal.
final public  intcheckTransition(int newState, boolean throwException)
     Returns the action required to transition to a specified state.
Parameters:
  newState - The new state required.
Parameters:
  throwException - Causes an exception to be thrown if the transitionwould be illegal.
final public  booleanequals(Object obj)
     Tests for object identity.
abstract protected  int[]getActionsByState()
     Returns the transitions from the current state, indexed by new state. Illegal transitions are marked by the array element value WMObjectState.ILLEGAL_ACTION . Array of action codes.
final public  WMObjectState[]getStates()
     Returns the list of states to which legal transitions are possible.
abstract protected  int[]getStatesByAction()
     Returns the transitions from the current state, indexed by action. Illegal transitions are marked by the array element value WMObjectState.ILLEGAL_ACTION . Array of state codes.
abstract protected  String[]getTags()
     Returns the list of all state tags applicable to this instance's class.
final public  intgetValue()
     JavaBean-compliant property accessor, synonym for WMObjectState.value .
abstract protected  WMObjectState[]getValues()
     Returns the list of all state values applicable to this instance's class.
final public  inthashCode()
     Equal objects must have equal hash codes.
final protected  ObjectreadResolve()
    
final protected  intstateFromAction(int action)
     Returns the state that would result from a specified action.
Parameters:
  action - Action code.
final public  StringstringValue()
     Returns the object state as a string.
final public  StringtoString()
    
final public  intvalue()
     Returns the object state as an integer.
protected static  WMObjectStatevalueOf(String[] tags, WMObjectState[] values, String state)
    

Field Detail
DEFAULT_INT
final public static int DEFAULT_INT(Code)
Signifies that the object remains in its current state.



FORCED_ACTION
final public static int FORCED_ACTION(Code)
Action is illegal to API caller, but is being forced by the engine.



ILLEGAL_ACTION
final public static int ILLEGAL_ACTION(Code)
Action is invalid for the current state.



MESSAGE
final public static String MESSAGE(Code)



NO_ACTION
final public static int NO_ACTION(Code)
Action does not cause a state transition.



_state
protected int _state(Code)
The object state code.




Constructor Detail
WMObjectState
protected WMObjectState(int state)(Code)
Construct a new WMObjectState. The array type parameters are references to arrays statically defined in the calling subclass.
Parameters:
  state - The integer code for this state.




Method Detail
checkTransition
final public int checkTransition(WMObjectState newState, boolean throwException) throws WMTransitionNotAllowedException(Code)
Returns the action required to transition to a specified state.
Parameters:
  newState - The new state required.
Parameters:
  throwException - Causes an exception to be thrown if the transitionwould be illegal. Action code.
throws:
  WMTransitionNotAllowedException - if a transition from the currentstate to the new state would be illegal.



checkTransition
final public int checkTransition(int newState, boolean throwException) throws WMTransitionNotAllowedException(Code)
Returns the action required to transition to a specified state.
Parameters:
  newState - The new state required.
Parameters:
  throwException - Causes an exception to be thrown if the transitionwould be illegal. Action code.
throws:
  WMTransitionNotAllowedException - if a transition from the currentstate to the new state would be illegal.



equals
final public boolean equals(Object obj)(Code)
Tests for object identity. Only one instance of each ordinal value can ever exist.
Parameters:
  obj - The with which to compare object this instance. true if the two references point to the same object.



getActionsByState
abstract protected int[] getActionsByState()(Code)
Returns the transitions from the current state, indexed by new state. Illegal transitions are marked by the array element value WMObjectState.ILLEGAL_ACTION . Array of action codes. This is a reference to a final arraydefined statically in the instance's subclass.



getStates
final public WMObjectState[] getStates()(Code)
Returns the list of states to which legal transitions are possible. List of legal states.



getStatesByAction
abstract protected int[] getStatesByAction()(Code)
Returns the transitions from the current state, indexed by action. Illegal transitions are marked by the array element value WMObjectState.ILLEGAL_ACTION . Array of state codes. This is a reference to a final arraydefined statically in the instance's subclass.



getTags
abstract protected String[] getTags()(Code)
Returns the list of all state tags applicable to this instance's class. The array is indexed by state code. This is be a reference to a final array defined statically in the instance's subclass. Array of state tags.



getValue
final public int getValue()(Code)
JavaBean-compliant property accessor, synonym for WMObjectState.value .



getValues
abstract protected WMObjectState[] getValues()(Code)
Returns the list of all state values applicable to this instance's class. This is a reference to a final array defined statically in the instance's subclass. Array of state objects.



hashCode
final public int hashCode()(Code)
Equal objects must have equal hash codes. The hash code.



readResolve
final protected Object readResolve() throws ObjectStreamException(Code)



stateFromAction
final protected int stateFromAction(int action) throws WMTransitionNotAllowedException(Code)
Returns the state that would result from a specified action.
Parameters:
  action - Action code. State code.
throws:
  WMTransitionNotAllowedException - if the specified action isinapplicable to the current state.



stringValue
final public String stringValue()(Code)
Returns the object state as a string. The object state.



toString
final public String toString()(Code)



value
final public int value()(Code)
Returns the object state as an integer. This ordinal state number is how the state is represented in persistent storage. Ordinal state number, as defined in subclasses.



valueOf
protected static WMObjectState valueOf(String[] tags, WMObjectState[] values, String state)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.