public CharBinding() {
super("char");
}
protected AbstractDescriptor createDescriptor(String value, Element element, Parse parse) {
CharacterDescriptor characterDescriptor = new CharacterDescriptor();
if (value.length()!=1) {
parse.addProblem(createValueExceptionMessage("length of value must be 1", element), element);
return null;
}
char c = value.charAt(0);
characterDescriptor.setValue(new Character(c));
return characterDescriptor;
}