newConverters.add(converter);
}
private void addValidator(
final TypeElement typeElement, final List<org.jdom.Element> newValidators, final Namespace namespace) {
final Validator validatorAnn = typeElement.getAnnotation(Validator.class);
final org.jdom.Element validator = new org.jdom.Element(VALIDATOR, namespace);
if (validatorAnn.id().length() > 0) {
final org.jdom.Element validatorId = new org.jdom.Element(VALIDATOR_ID, namespace);
validatorId.setText(validatorAnn.id());
validator.addContent(validatorId);
} else if (validatorAnn.forClass().length() > 0) {
final org.jdom.Element validatorForClass = new org.jdom.Element(VALIDATOR_FOR_CLASS, namespace);
validatorForClass.setText(validatorAnn.forClass());
validator.addContent(validatorForClass);
}
final org.jdom.Element validatorClass = new org.jdom.Element(VALIDATOR_CLASS, namespace);
validatorClass.setText(typeElement.getQualifiedName().toString());