while (i.hasNext())
{
Map.Entry entry = (Map.Entry) i.next();
String name = (String) entry.getKey();
TemplateAttribute attribute = (TemplateAttribute) entry.getValue();
AttributeType type = attribute.getType();
if (type == AttributeType.OGNL_EXPRESSION)
{
addExpressionBinding(
component,
spec,
name,
attribute.getValue(),
token.getLocation());
continue;
}
if (type == AttributeType.LOCALIZATION_KEY)
{
addStringBinding(component, spec, name, attribute.getValue(), token.getLocation());
continue;
}
if (type == AttributeType.LITERAL)
addStaticBinding(component, spec, name, attribute.getValue(), token.getLocation());
}
}