| java.lang.Object com.sun.portal.rewriter.util.clip.CLIPOption
CLIPOption | public class CLIPOption (Code) | | The Option class defines a CLIP option.
It defines the long and short (if exists) names, if the option is mandatory, its type and default value (if any).
|
CLIPOption | public CLIPOption(String aLongName, String aShortName, int aType, String aDefaultValues, String aHelpMessageID) throws IllegalArgumentException(Code) | | Creates a CLIPParser Option.
Parameters: aLongName - option's long name, it can not be NULL and it has to be at least 2 characters. Parameters: aShortName - option's short name, it can be undefined (NULL) or it has to be exactly one character. Parameters: aType - indicates the type of the option, it can be BOOLEAN, REGULAR or COLLECTION. Parameters: aDefaultValues - specifies the option default value if any, NULL indicates no default value.If the option has not default value the option is mandatory.If the option is a collection the elements have to be separated with commas or white spaces,if a white space is present then the commas are consider part of a single value.For boolean options the default value can be 'true' or 'false'. Parameters: aHelpMessageID - help message for the option. throws: IllegalArgumentException - if the information passed is invalid. |
getType | public int getType()(Code) | | |
isMandatory | public boolean isMandatory()(Code) | | |
|
|