Given the actual logic of ElementReflectHelper.getPropertyName, accessing hyphenated properties (such as 'auto-validate' is impossible.
One possible way to do so would be rewriting the method in the following fashion:
public static String getPropertyName(String name)
{
name = name.replaceAll("^(get|set|is)", "");
// TODO locale for lower case
name = Character.toLowerCase(name.charAt(0)) + name.substring(1);
name = name.replaceAll("([A-Z])", "-$1").toLowerCase();
return name;
}
Given the actual logic of
ElementReflectHelper.getPropertyName
, accessing hyphenated properties (such as 'auto-validate' is impossible.One possible way to do so would be rewriting the method in the following fashion: