public class CustomStringListCommandParameter extends StringListCommandParameter
StringListCommandParameter| Constructor and Description |
|---|
CustomStringListCommandParameter(String id,
String des)
constructor for the custom string list parameter with id and description
|
CustomStringListCommandParameter(String id,
String des,
String criteria)
constructor for the custom string list parameter with id, description and criteria
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
method to clone this object for instantiation
|
String |
getCriteria() |
String[] |
getValue() |
CommandParameter |
instantiate(String s)
instantiate single string
|
CommandParameter |
instantiate(String[] s)
instantiates a list of arguments if valid
|
boolean |
isValid(String s)
valid iff string matches criteria
|
void |
setCriteria(String criteria) |
void |
setValue(String[] value) |
getDescription, getIdentifierpublic CustomStringListCommandParameter(String id, String des)
id - the identification string of this parameterdes - the description of this parameterpublic CustomStringListCommandParameter(String id, String des, String criteria)
id - the identification string of this parameterdes - the description of this parametercriteria - the validation criteria for this parameterpublic String[] getValue()
getValue in class StringListCommandParameterpublic String getCriteria()
public void setValue(String[] value)
setValue in class StringListCommandParameterpublic void setCriteria(String criteria)
public boolean isValid(String s)
isValid in class StringListCommandParameters - the given input stringpublic CommandParameter instantiate(String s)
instantiate in class StringListCommandParameters - the given string to instantiatepublic CommandParameter instantiate(String[] s)
instantiate in class StringListCommandParameters - the given strings array to instantiatepublic Object clone()
clone in class StringListCommandParameterCopyright © 2018. All rights reserved.