I've found it very usefull until now. I need to pass a QualifiedSwitch with exactly two values.
"-replace_before_load:search:replace"
And validate the number of values outside JSAP.
So, I decided to simply inherit from QualifiedSwitch and change the "getSyntax()" method. I should pass two parameters:
"setSyntaxQualifiedValuesNames(String pNames)"
"setSyntaxQualifiedValuesRequired(boolean pRequired)"
The first one to add the "search","replace" names, and the second one to control the "" that apear in the standard "getSyntax".
But I couldn't because QualifiedSwitch is final.
Then, I decided to inherit directly from FlaggedOption and copy the QualifiedSwitch contents but JSAPResult and Parser have some specific code about QualifiedSwitch. So I decided to inherit too from those classes, but I can't inherit from Parser.
So, my hands are tied.
I don't want to break the License since I want to sell my program.
Any Ideas?
Ely.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi.
I'm hoping this project isn't complitely dead.
I've found it very usefull until now. I need to pass a QualifiedSwitch with exactly two values.
"-replace_before_load:search:replace"
And validate the number of values outside JSAP.
So, I decided to simply inherit from QualifiedSwitch and change the "getSyntax()" method. I should pass two parameters:
"setSyntaxQualifiedValuesNames(String pNames)"
"setSyntaxQualifiedValuesRequired(boolean pRequired)"
The first one to add the "search","replace" names, and the second one to control the "" that apear in the standard "getSyntax".
But I couldn't because QualifiedSwitch is final.
Then, I decided to inherit directly from FlaggedOption and copy the QualifiedSwitch contents but JSAPResult and Parser have some specific code about QualifiedSwitch. So I decided to inherit too from those classes, but I can't inherit from Parser.
So, my hands are tied.
I don't want to break the License since I want to sell my program.
Any Ideas?
Ely.