|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.jeantessier.commandline.ExactlyParameterStrategy
The command-line must include an exact number of parameters or the framework will find the command-line invalid.
| Constructor Summary | |
ExactlyParameterStrategy(int nbParameters)
|
|
| Method Summary | |
boolean |
accept(java.lang.String param)
|
void |
accept(Visitor visitor)
|
int |
getCount()
|
int |
getNbParameters()
|
boolean |
isSatisfied()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ExactlyParameterStrategy(int nbParameters)
| Method Detail |
public boolean accept(java.lang.String param)
accept in interface ParameterStrategypublic boolean isSatisfied()
isSatisfied in interface ParameterStrategypublic int getNbParameters()
getNbParameters in interface CountingParameterStrategypublic int getCount()
getCount in interface CountingParameterStrategypublic void accept(Visitor visitor)
accept in interface Visitable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||