public class PageElementFactoryImpl extends Object implements PageElementFactory
| Constructor and Description |
|---|
PageElementFactoryImpl(TypeCoercer typeCoercer,
BindingSource bindingSource) |
| Modifier and Type | Method and Description |
|---|---|
RenderCommand |
newAttributeElement(ComponentResources componentResources,
AttributeToken token)
Creates a RenderCommand for rendering an attribute, when the attribute contains expansions.
|
Binding |
newBinding(String parameterName,
ComponentResources loadingComponentResources,
ComponentResources embeddedComponentResources,
String defaultBindingPrefix,
String expression,
Location location)
Creates a new binding as with
BindingSource.newBinding(String, ComponentResources, ComponentResources,
String, String, Location). |
RenderCommand |
newExpansionElement(ComponentResources componentResources,
ExpansionToken token)
Converts an expansion token into a command that renders the expanded value.
|
public PageElementFactoryImpl(TypeCoercer typeCoercer, BindingSource bindingSource)
public RenderCommand newAttributeElement(ComponentResources componentResources, AttributeToken token)
PageElementFactorynewAttributeElement in interface PageElementFactorycomponentResources - identifies componenttoken - token containing value with expansionspublic RenderCommand newExpansionElement(ComponentResources componentResources, ExpansionToken token)
PageElementFactorynewExpansionElement in interface PageElementFactorycomponentResources - identifies the componenttoken - contains expansion expressionpublic Binding newBinding(String parameterName, ComponentResources loadingComponentResources, ComponentResources embeddedComponentResources, String defaultBindingPrefix, String expression, Location location)
PageElementFactoryBindingSource.newBinding(String, ComponentResources, ComponentResources,
String, String, Location). However, if the binding contains an expansion (i.e., ${...}), then a
binding that returns the fully expanded expression will be returned.newBinding in interface PageElementFactory5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.