|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.dsmlv2.Dsmlv2Container
public class Dsmlv2Container
This class represents the DSML Container. It used by the DSML Parser to store information.
Constructor Summary | |
---|---|
Dsmlv2Container()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dsmlv2Container()
Method Detail |
---|
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()
getState
in interface Container
public void setState(int state)
setState
in interface Container
state
- the new statepublic int getTransition()
getTransition
in interface Container
public void setTransition(int transition)
setTransition
in interface Container
transition
- the transition to setpublic IStates getStates()
getStates
in interface Container
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 tag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |