public class Builtin extends Object implements Serializable
Constructor and Description |
---|
Builtin() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static boolean isMember(Set allStates, String state)
allStates
- The Set of State objects to look instate
- The State ID to compare withpublic 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)
insteaddata
- 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)
insteaddata
- 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.Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.