|
|||||||||
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 nb_parameters)
|
Method Summary | |
boolean |
Accept(java.lang.String param)
|
void |
Accept(Visitor visitor)
|
int |
Count()
|
int |
NbParameters()
|
boolean |
Satisfied()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AtMostParameterStrategy(int nb_parameters)
Method Detail |
public boolean Accept(java.lang.String param)
Accept
in interface ParameterStrategy
public boolean Satisfied()
Satisfied
in interface ParameterStrategy
public int NbParameters()
NbParameters
in interface CountingParameterStrategy
public int Count()
Count
in interface CountingParameterStrategy
public void Accept(Visitor visitor)
Accept
in interface Visitable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |