String defaultBindingType = BindingUtils.getDefaultBindingType(
spec,
name,
BindingConstants.LITERAL_PREFIX);
IBinding binding = _bindingSource.createBinding(
_loadComponent,
description,
value,
defaultBindingType,
token.getLocation());
addBinding(component, spec, name, binding);
}
}
// if the component defines a templateTag parameter and
// there is no established binding for that parameter,
// add a static binding carrying the template tag
if (spec.getParameter(TemplateSource.TEMPLATE_TAG_PARAMETER_NAME) != null
&& component.getBinding(TemplateSource.TEMPLATE_TAG_PARAMETER_NAME) == null)
{
IBinding binding = _bindingSource.createBinding(
component,
TemplateSource.TEMPLATE_TAG_PARAMETER_NAME,
token.getTag(),
BindingConstants.LITERAL_PREFIX,
token.getLocation());