|
|||||||||||
| 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.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private org.xmldb.api.base.Collection |
mCollection
The collection that will be returned. |
private ActivityContext |
mContext
Context from which the inputs will be retrieved. |
private BlockWriter |
mOutput
Output that will be returned. |
| 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 |
| Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private final org.xmldb.api.base.Collection mCollection
private final ActivityContext mContext
private final BlockWriter mOutput
| 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()
CommandContextCollection that the command will be
interact with.
getCollection in interface CommandContextCollection object. It is not
the command's responsibility to close this.
public BlockReader getInput(java.lang.String inputName)
throws XMLDBStreamNotFoundException
CommandContext
getInput in interface CommandContextinputName - The name of the input.
BlockReader from which the input can be read.
XMLDBStreamNotFoundException - If there is no such input stream.
public BlockWriter getOutput()
throws XMLDBStreamNotFoundException
CommandContext
getOutput in interface CommandContextBlockWriter to which the output can be written.
XMLDBStreamNotFoundException - If there is no output stream.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||