public class Dsmlv2Container extends Object implements Container
Constructor and Description |
---|
Dsmlv2Container() |
Modifier and Type | Method and Description |
---|---|
BatchRequest |
getBatchRequest()
Gets the DSML Batch Request
|
BatchResponse |
getBatchResponse()
Gets the DSML Batch Response
|
AbstractGrammar |
getGrammar()
Gets the grammar
|
org.xmlpull.v1.XmlPullParser |
getParser()
Gets the parser
|
int |
getState()
Get the current grammar state
|
IStates |
getStates()
Get the states for this container's grammars
|
int |
getTransition()
Get the transition
|
GrammarTransition |
getTransition(int state,
Tag tag)
Get the transition associated with the state and tag
|
void |
setBatchRequest(BatchRequest batchRequest)
Sets the DSML Batch Request
|
void |
setBatchResponse(BatchResponse batchResponse)
Sets the DSML Batch Request
|
void |
setGrammar(AbstractGrammar grammar)
Sets the Grammar
|
void |
setParser(org.xmlpull.v1.XmlPullParser parser)
Sets the parser
|
void |
setState(int state)
Set the new current state
|
void |
setTransition(int transition)
Update the transition from a state to another
|
public BatchRequest getBatchRequest()
public void setBatchRequest(BatchRequest batchRequest)
batchRequest
- the Batch Request to setpublic BatchResponse getBatchResponse()
public void setBatchResponse(BatchResponse batchResponse)
batchResponse
- the Batch Response to setpublic org.xmlpull.v1.XmlPullParser getParser()
public void setParser(org.xmlpull.v1.XmlPullParser parser)
parser
- the parser to setpublic int getState()
public void setState(int state)
public int getTransition()
getTransition
in interface Container
public void setTransition(int transition)
setTransition
in interface Container
transition
- the transition to setpublic IStates getStates()
public AbstractGrammar getGrammar()
public void setGrammar(AbstractGrammar grammar)
grammar
- the grammar to setpublic GrammarTransition getTransition(int state, Tag tag)
state
- the current statetag
- the current tagCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.