| java.lang.Object org.apache.commons.scxml.Builtin
Builtin | public class Builtin implements Serializable(Code) | | Implementations of builtin functions defined by the SCXML
specification.
The current version of the specification defines one builtin
predicate In()
|
Method Summary | |
public 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.
Manifests within rvalue expressions in the document,
for Commons JEXL and Commons EL based documents..
Parameters: namespaces - The current document namespaces map at XPath location Parameters: data - The context Node, though the method accepts an Objectso error is reported by Commons SCXML, ratherthan the underlying expression language. Parameters: path - The XPath expression. | public static Object | data(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.
Manifests within rvalue expressions in the document,
for Commons JEXL and Commons EL based documents..
Parameters: data - The context Node, though the method accepts an Objectso error is reported by Commons SCXML, ratherthan the underlying expression language. Parameters: path - The XPath expression. | public 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.
Manifests within "location" attribute of <assign> element,
for Commons JEXL and Commons EL based documents.
Parameters: namespaces - The current document namespaces map at XPath location Parameters: data - The context Node, though the method accepts an Objectso error is reported by Commons SCXML, ratherthan the underlying expression language. Parameters: path - The XPath expression. | public static Node | dataNode(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.
Manifests within "location" attribute of <assign> element,
for Commons JEXL and Commons EL based documents.
Parameters: data - The context Node, though the method accepts an Objectso error is reported by Commons SCXML, ratherthan the underlying expression language. Parameters: path - The XPath expression. | public static boolean | isMember(Set allStates, String state) Implements the In() predicate for SCXML documents. |
data | public static Object data(Map namespaces, Object data, String path)(Code) | | A variant of the Data() function for Commons SCXML documents,
coerced to a Double, a Long or a String, whichever succeeds,
in that order.
Manifests within rvalue expressions in the document,
for Commons JEXL and Commons EL based documents..
Parameters: namespaces - The current document namespaces map at XPath location Parameters: data - The context Node, though the method accepts an Objectso error is reported by Commons SCXML, ratherthan the underlying expression language. Parameters: path - The XPath expression. The first node matching the path, coerced to a String, or nullif no nodes match. |
data | public static Object data(Object data, String path)(Code) | | A variant of the Data() function for Commons SCXML documents,
coerced to a Double, a Long or a String, whichever succeeds,
in that order.
Manifests within rvalue expressions in the document,
for Commons JEXL and Commons EL based documents..
Parameters: data - The context Node, though the method accepts an Objectso error is reported by Commons SCXML, ratherthan the underlying expression language. Parameters: path - The XPath expression. The first node matching the path, coerced to a String, or nullif no nodes match.Builtin.data(Map,Object,String) |
dataNode | public static Node dataNode(Map namespaces, Object data, String path)(Code) | | Implements the Data() function for Commons SCXML documents, that
can be used to obtain a node from one of the XML data trees.
Manifests within "location" attribute of <assign> element,
for Commons JEXL and Commons EL based documents.
Parameters: namespaces - The current document namespaces map at XPath location Parameters: data - The context Node, though the method accepts an Objectso error is reported by Commons SCXML, ratherthan the underlying expression language. Parameters: path - The XPath expression. The first node matching the path, or null if no nodes match. |
dataNode | public static Node dataNode(Object data, String path)(Code) | | Implements the Data() function for Commons SCXML documents, that
can be used to obtain a node from one of the XML data trees.
Manifests within "location" attribute of <assign> element,
for Commons JEXL and Commons EL based documents.
Parameters: data - The context Node, though the method accepts an Objectso error is reported by Commons SCXML, ratherthan the underlying expression language. Parameters: path - The XPath expression. The first node matching the path, or null if no nodes match.Builtin.dataNode(Map,Object,String) |
isMember | public static boolean isMember(Set allStates, String state)(Code) | | Implements the In() predicate for SCXML documents. The method
name chosen is different since "in" is a reserved token
in some expression languages.
Does this state belong to the given Set of States.
Simple ID based comparator, assumes IDs are unique.
Parameters: allStates - The Set of State objects to look in Parameters: state - The State ID to compare with Whether this State belongs to this Set |
|
|