|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.scxml.Builtin
public class Builtin
Implementations of builtin functions defined by the SCXML specification. The current version of the specification defines one builtin predicate In()
Constructor Summary | |
---|---|
Builtin()
|
Method Summary | |
---|---|
static Object |
data(Map namespaces,
Object data,
String path)
A variant of the Data() function for Commons SCXML documents, coerced to a Double, a Long or a String, whichever succeeds, in that order. |
static Object |
data(Object data,
String path)
Deprecated. Use data(Map,Object,String) instead |
static Node |
dataNode(Map namespaces,
Object data,
String path)
Implements the Data() function for Commons SCXML documents, that can be used to obtain a node from one of the XML data trees. |
static Node |
dataNode(Object data,
String path)
Deprecated. Use dataNode(Map,Object,String) instead |
static boolean |
isMember(Set allStates,
String state)
Implements the In() predicate for SCXML documents. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Builtin()
Method Detail |
---|
public static boolean isMember(Set allStates, String state)
allStates
- The Set of State objects to look instate
- The State ID to compare with
public static Node dataNode(Map namespaces, Object data, String path)
namespaces
- The current document namespaces map at XPath locationdata
- The context Node, though the method accepts an Object
so error is reported by Commons SCXML, rather
than the underlying expression language.path
- The XPath expression.
public static Object data(Map namespaces, Object data, String path)
namespaces
- The current document namespaces map at XPath locationdata
- The context Node, though the method accepts an Object
so error is reported by Commons SCXML, rather
than the underlying expression language.path
- The XPath expression.
public static Node dataNode(Object data, String path)
dataNode(Map,Object,String)
instead
data
- The context Node, though the method accepts an Object
so error is reported by Commons SCXML, rather
than the underlying expression language.path
- The XPath expression.
public static Object data(Object data, String path)
data(Map,Object,String)
instead
data
- The context Node, though the method accepts an Object
so error is reported by Commons SCXML, rather
than the underlying expression language.path
- The XPath expression.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |