|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A CommandContext allows a command to access the objects that
it can interact with. For example, an command to add a new resource might get
a collection, using the getCollection method, then get the new
resource from an input, using the getInput method, before
writing some results to the output, retrieved with the getOutput
method.
| Method Summary | |
org.xmldb.api.base.Collection |
getCollection()
Gets the open Collection that the command will be interact
with. |
BlockReader |
getInput(java.lang.String inputName)
Get the named input for the Command to interact with. |
BlockWriter |
getOutput()
Gets the output for the command to write any results to. |
| Method Detail |
public org.xmldb.api.base.Collection getCollection()
throws CommonSystemException,
CommonUserException
Collection that the command will be interact
with.
Collection object. It is not
the commands responsibility to close the
Collection.
CommonUserException - If there is a user problem.
CommonSystemException - If there is a system problem.
public BlockReader getInput(java.lang.String inputName)
throws CommonSystemException,
CommonUserException
inputName - The name of the input.
BlockReader from which the input
can be read.
CommonSystemException - If there is a system problem.
CommonUserException - If there is a user problem.
public BlockWriter getOutput()
throws CommonSystemException,
CommonUserException
BlockWriter to which the output
can be written.
CommonSystemException - If there is a system problem.
CommonUserException - If there is a user problem.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||