else if (tagElement instanceof IConverterTagElement)
{
final ConverterTypeInfo typeInfo = ((IConverterTagElement) tagElement)
.getConverter();
// TODO: validate when no parent
ComponentInfo parent = _constructionData.getParent();
parent = findFirstParent(
ComponentFactory.INTERFACE_VALUEHOLDER, parent);
if (parent != null)
{
parent.addDecorator(
new ConverterDecorator(parent, typeInfo),
ComponentFactory.CONVERTER);
}
// TODO: else validate problem
}
else if (tagElement instanceof IValidatorTagElement)
{
final ValidatorTypeInfo typeInfo = ((IValidatorTagElement) tagElement)
.getValidator();
ComponentInfo parent = _constructionData.getParent();
parent = findFirstParent(
ComponentFactory.INTERFACE_EDITABLEVALUEHOLDER, parent);
if (parent != null)
{
parent.addDecorator(
new ValidatorDecorator(parent, typeInfo),
ComponentFactory.VALIDATOR);
}
// TODO :else validate problem
}