|
|||||||||
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 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 ExactlyParameterStrategy(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 |