Java Doc for SCXMLHelper.java in  » Library » Apache-commons-scxml-0.6-src » org » apache » commons » scxml » 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 » Library » Apache commons scxml 0.6 src » org.apache.commons.scxml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.commons.scxml.SCXMLHelper

SCXMLHelper
final public class SCXMLHelper (Code)
Helper class, all methods static final.




Method Summary
public static  voidcloneDatamodel(Datamodel datamodel, Context ctx, Evaluator evaluator, Log log)
     Clone data model.
public static  SetgetAncestorClosure(Set states, Set upperBounds)
     Creates a set which contains given states and all their ancestors recursively up to the upper bound.
public static  TransitionTargetgetLCA(TransitionTarget tt1, TransitionTarget tt2)
     Finds the least common ancestor of transition targets tt1 and tt2 if one exists.
public static  StringgetNodeValue(Node node)
     Retrieve a DOM node value as a string depending on its type.
public static  SetgetStatesExited(Transition t, Set currentStates)
     Returns the set of all states (and parallels) which are exited if a given transition t is going to be taken.
public static  booleanimplementationOf(Class clas, Class interfayce)
     Whether the class implements the interface.
public static  booleaninConflict(Transition t1, Transition t2, Set currentStates)
     According to the UML definition, two transitions are conflicting if the sets of states they exit overlap.
public static  booleanisDescendant(TransitionTarget tt, TransitionTarget ctx)
     Checks whether a transition target tt (State or Parallel) is a descendant of the transition target context.
public static  booleanisLegalConfig(Set states, ErrorReporter errRep)
     Checks whether a given set of states is a legal Harel State Table configuration (with the respect to the definition of the OR and AND states).
public static  booleanisStringEmpty(String attr)
     Return true if the string is empty.
public static  voidsetNodeValue(Node node, String value)
     Set node value, depending on its type, from a String.
public static  booleansubtypeOf(Class child, Class parent)
     Whether the first argument is a subtype of the second.



Method Detail
cloneDatamodel
public static void cloneDatamodel(Datamodel datamodel, Context ctx, Evaluator evaluator, Log log)(Code)
Clone data model.
Parameters:
  ctx - The context to clone to.
Parameters:
  datamodel - The datamodel to clone.
Parameters:
  evaluator - The expression evaluator.
Parameters:
  log - The error log.



getAncestorClosure
public static Set getAncestorClosure(Set states, Set upperBounds)(Code)
Creates a set which contains given states and all their ancestors recursively up to the upper bound. Null upperBound means root of the state machine.
Parameters:
  states - The Set of States
Parameters:
  upperBounds - The Set of upper bound States transitive closure of a given state set



getLCA
public static TransitionTarget getLCA(TransitionTarget tt1, TransitionTarget tt2)(Code)
Finds the least common ancestor of transition targets tt1 and tt2 if one exists.
Parameters:
  tt1 - First TransitionTarget
Parameters:
  tt2 - Second TransitionTarget closest common ancestor of tt1 and tt2 or null



getNodeValue
public static String getNodeValue(Node node)(Code)
Retrieve a DOM node value as a string depending on its type.
Parameters:
  node - A node to be retreived The value as a string



getStatesExited
public static Set getStatesExited(Transition t, Set currentStates)(Code)
Returns the set of all states (and parallels) which are exited if a given transition t is going to be taken. Current states are necessary to be taken into account due to orthogonal states and cross-region transitions - see UML specs for more details.
Parameters:
  t - transition to be taken
Parameters:
  currentStates - the set of current states (simple states only) a set of all states (including composite) which are exited if agiven transition is taken



implementationOf
public static boolean implementationOf(Class clas, Class interfayce)(Code)
Whether the class implements the interface.
Parameters:
  clas - The candidate class
Parameters:
  interfayce - The interface true if clas implements interfayce, otherwise false



inConflict
public static boolean inConflict(Transition t1, Transition t2, Set currentStates)(Code)
According to the UML definition, two transitions are conflicting if the sets of states they exit overlap.
Parameters:
  t1 - a transition to check against t2
Parameters:
  t2 - a transition to check against t1
Parameters:
  currentStates - the set of current states (simple states only) true if the t1 and t2 are conflicting transitions
See Also:   SCXMLHelper.getStatesExited(Transition,Set)



isDescendant
public static boolean isDescendant(TransitionTarget tt, TransitionTarget ctx)(Code)
Checks whether a transition target tt (State or Parallel) is a descendant of the transition target context.
Parameters:
  tt - TransitionTarget to check - a potential descendant
Parameters:
  ctx - TransitionTarget context - a potential ancestor true iff tt is a descendant of ctx, false otherwise



isLegalConfig
public static boolean isLegalConfig(Set states, ErrorReporter errRep)(Code)
Checks whether a given set of states is a legal Harel State Table configuration (with the respect to the definition of the OR and AND states).
Parameters:
  states - a set of states
Parameters:
  errRep - ErrorReporter to report detailed error info if needed true if a given state configuration is legal, false otherwise



isStringEmpty
public static boolean isStringEmpty(String attr)(Code)
Return true if the string is empty.
Parameters:
  attr - The String to test Is string empty



setNodeValue
public static void setNodeValue(Node node, String value)(Code)
Set node value, depending on its type, from a String.
Parameters:
  node - A Node whose value is to be set
Parameters:
  value - The new value



subtypeOf
public static boolean subtypeOf(Class child, Class parent)(Code)
Whether the first argument is a subtype of the second.
Parameters:
  child - The candidate subtype
Parameters:
  parent - The supertype true if child is subtype of parent, otherwise false



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.