public class XppStateMachineParser extends Object implements StateMachineParser
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSPATH |
static String |
HTTP |
static String |
ID |
static String |
IDLOCATION |
static String |
INITIAL |
static String |
INVOKE |
protected static String |
LABEL |
protected static String |
LOG |
static String |
NAME |
static String |
ON_ENTRY |
static String |
ON_EXIT |
static String |
SCXML |
static String |
SEND |
static String |
STATE |
static String |
TRANSITION |
| Constructor and Description |
|---|
XppStateMachineParser() |
XppStateMachineParser(List<XppActionParser> actionParsers) |
| Modifier and Type | Method and Description |
|---|---|
protected Executable |
createAssignByExpression(String location,
String expr) |
protected Executable |
createAssignByValue(String location,
String value) |
protected Executable |
createLog(String label,
String expr) |
protected State |
createRootState() |
protected StateMachineModel |
createStateMachine(State rootState) |
protected Body |
extractBody(String namelist,
String content,
String contentExpr,
Set<Param> params) |
protected boolean |
hasURIScheme(URI source,
String scheme) |
protected boolean |
isClasspathURI(URI source) |
protected boolean |
isHttpURI(URI source) |
static void |
main(String[] args) |
protected Executable |
parseLog(String namespace,
org.xmlpull.v1.XmlPullParser xpp) |
StateMachineModel |
parseScxml(URI source) |
StateMachineModel |
parseXPP(org.xmlpull.v1.XmlPullParser xpp) |
StateMachineModel |
parseXPP(org.xmlpull.v1.XmlPullParser xpp,
String namespace) |
boolean |
validURI(URI source) |
public static final String SCXML
public static final String INITIAL
public static final String STATE
public static final String TRANSITION
public static final String SEND
public static final String INVOKE
public static final String ID
public static final String IDLOCATION
public static final String NAME
public static final String ON_ENTRY
public static final String ON_EXIT
protected static final String LOG
protected static final String LABEL
public static final String CLASSPATH
public static final String HTTP
public XppStateMachineParser()
throws ConfigurationException
ConfigurationExceptionpublic XppStateMachineParser(List<XppActionParser> actionParsers) throws ConfigurationException
ConfigurationExceptionpublic boolean validURI(URI source)
validURI in interface StateMachineParserprotected boolean isClasspathURI(URI source)
protected boolean isHttpURI(URI source)
public StateMachineModel parseScxml(URI source) throws ConfigurationException, IOException, SCXMLParserException
parseScxml in interface StateMachineParserConfigurationExceptionIOExceptionSCXMLParserExceptionprotected StateMachineModel createStateMachine(State rootState)
protected State createRootState() throws ConfigurationException
ConfigurationExceptionprotected Executable createAssignByValue(String location, String value)
protected Executable createAssignByExpression(String location, String expr)
public StateMachineModel parseXPP(org.xmlpull.v1.XmlPullParser xpp) throws org.xmlpull.v1.XmlPullParserException, IOException, ConfigurationException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionConfigurationExceptionpublic StateMachineModel parseXPP(org.xmlpull.v1.XmlPullParser xpp, String namespace) throws org.xmlpull.v1.XmlPullParserException, IOException, ConfigurationException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionConfigurationExceptionprotected Executable parseLog(String namespace, org.xmlpull.v1.XmlPullParser xpp)
protected Executable createLog(String label, String expr)
protected Body extractBody(String namelist, String content, String contentExpr, Set<Param> params) throws ConfigurationException
ConfigurationExceptionpublic static void main(String[] args)
Copyright © 2015. All rights reserved.