public class StateMachineImporterImpl<T extends StateMachine<T,S,E,C>,S,E,C> extends org.xml.sax.helpers.DefaultHandler implements StateMachineImporter<T,S,E,C>
| Modifier and Type | Field and Description |
|---|---|
protected Stack<MutableState<T,S,E,C>> |
currentStates |
protected org.squirrelframework.foundation.fsm.impl.TransitionBuilderImpl<T,S,E,C> |
currentTranstionBuilder |
protected Converter<E> |
eventConverter |
protected com.google.common.collect.ListMultimap<MutableState<T,S,E,C>,MutableState<T,S,E,C>> |
hierarchicalStateStore |
protected Boolean |
isEntryAction |
protected Map<String,Object> |
reusableInstance |
static String |
SCXML_NAMESPACE |
static String |
SQRL_NAMESPACE |
protected String |
sqrlPrefix |
protected Converter<S> |
stateConverter |
protected StateMachineBuilder<T,S,E,C> |
stateMachineBuilder |
protected String |
value |
| Constructor and Description |
|---|
StateMachineImporterImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] buffer,
int start,
int length) |
void |
endElement(String uri,
String localName,
String qName) |
protected MutableState<T,S,E,C> |
getCurrentState() |
protected org.squirrelframework.foundation.fsm.impl.TransitionBuilderImpl<T,S,E,C> |
getCurrentTranstionBuilder() |
StateMachineBuilder<T,S,E,C> |
importFromFile(File content) |
StateMachineBuilder<T,S,E,C> |
importFromInputStream(InputStream content) |
StateMachineBuilder<T,S,E,C> |
importFromString(String content) |
protected boolean |
isConstructState() |
protected boolean |
isConstructTransition() |
void |
registerReusableInstance(Object instance) |
void |
registerReusableInstance(String instanceName,
Object instance) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
void |
startPrefixMapping(String prefix,
String uri) |
void |
unregisterReusableInstance(String instanceName) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, unparsedEntityDecl, warningpublic static String SQRL_NAMESPACE
public static String SCXML_NAMESPACE
protected String value
protected String sqrlPrefix
protected StateMachineBuilder<T extends StateMachine<T,S,E,C>,S,E,C> stateMachineBuilder
protected final Stack<MutableState<T extends StateMachine<T,S,E,C>,S,E,C>> currentStates
protected org.squirrelframework.foundation.fsm.impl.TransitionBuilderImpl<T extends StateMachine<T,S,E,C>,S,E,C> currentTranstionBuilder
protected final com.google.common.collect.ListMultimap<MutableState<T extends StateMachine<T,S,E,C>,S,E,C>,MutableState<T extends StateMachine<T,S,E,C>,S,E,C>> hierarchicalStateStore
protected Boolean isEntryAction
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void characters(char[] buffer,
int start,
int length)
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionprotected boolean isConstructState()
protected boolean isConstructTransition()
public void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionprotected MutableState<T,S,E,C> getCurrentState()
protected org.squirrelframework.foundation.fsm.impl.TransitionBuilderImpl<T,S,E,C> getCurrentTranstionBuilder()
public StateMachineBuilder<T,S,E,C> importFromInputStream(InputStream content)
importFromInputStream in interface StateMachineImporter<T extends StateMachine<T,S,E,C>,S,E,C>public StateMachineBuilder<T,S,E,C> importFromString(String content)
importFromString in interface StateMachineImporter<T extends StateMachine<T,S,E,C>,S,E,C>public StateMachineBuilder<T,S,E,C> importFromFile(File content)
importFromFile in interface StateMachineImporter<T extends StateMachine<T,S,E,C>,S,E,C>public void registerReusableInstance(Object instance)
registerReusableInstance in interface StateMachineImporter<T extends StateMachine<T,S,E,C>,S,E,C>public void unregisterReusableInstance(String instanceName)
unregisterReusableInstance in interface StateMachineImporter<T extends StateMachine<T,S,E,C>,S,E,C>public void registerReusableInstance(String instanceName, Object instance)
registerReusableInstance in interface StateMachineImporter<T extends StateMachine<T,S,E,C>,S,E,C>Copyright © 2013–2016. All rights reserved.