|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommandContext<C,P>
The command context provided to a command during the execution phase. The command context provides the various interactions that a command can perform with its context during its execution.
| Method Summary | |
|---|---|
java.lang.Iterable<C> |
consume()
Returns an iterator over the stream of consumed items. |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
|
ShellPrinter |
getWriter()
|
boolean |
isPiped()
Returns true if the command is involved in a pipe operation and receives a stream. |
void |
produce(P product)
|
java.lang.String |
readLine(java.lang.String msg,
boolean echo)
|
| Method Detail |
|---|
java.util.Map<java.lang.String,java.lang.Object> getAttributes()
java.lang.String readLine(java.lang.String msg,
boolean echo)
ShellPrinter getWriter()
boolean isPiped()
java.lang.Iterable<C> consume()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if the command is not involved in a pipe operationvoid produce(P product)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||