J
Jerminia
Hello,
I have the following problem:
I need to perform validation on an input parameter that is a String.
This String has to be one of the values of an enumeration.
The problem is that the enumeration type is not known until runtime - thus
the caller tells me that the concerned enum by specifying its full
qualified name.
e.g.
boolean validateStringOnEnum( String toTest, String
enumFullQualName);
Does anybody know what the code would look like?
Cheers!
I have the following problem:
I need to perform validation on an input parameter that is a String.
This String has to be one of the values of an enumeration.
The problem is that the enumeration type is not known until runtime - thus
the caller tells me that the concerned enum by specifying its full
qualified name.
e.g.
boolean validateStringOnEnum( String toTest, String
enumFullQualName);
Does anybody know what the code would look like?
Cheers!