|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.jeantessier.commandline.AtMostParameterStrategy
The command-line can include at most a certain number of parameters or the framework will find the command-line invalid.
| Constructor Summary | |
AtMostParameterStrategy(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 AtMostParameterStrategy(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 | ||||||||