|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.activity.xmldb.commands.CommandContextImpl
A simple CommandContext for use from the
CommandActivity.
| Constructor Summary | |
CommandContextImpl(org.xmldb.api.base.Collection collection,
ActivityContext context,
BlockWriter output)
Constructs an instance using the specified parameters. |
|
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CommandContextImpl(org.xmldb.api.base.Collection collection,
ActivityContext context,
BlockWriter output)
collection - The Collection that will be accessible
from this instance.context - The activity Context from which the inputs
that are accessible from this instance will be retrieved.output - The BlockWriter that will be accessible
from this instance.| Method Detail |
public org.xmldb.api.base.Collection getCollection()
throws CommonSystemException,
CommonUserException
CommandContextCollection that the command will be interact
with.
getCollection in interface CommandContextCollection 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
CommandContext
getInput in interface CommandContextinputName - 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
CommandContext
getOutput in interface CommandContextBlockWriter to which the output
can be written.
CommonSystemException - If there is a system problem.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||