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)
PageElementFactory
newAttributeElement
in interface PageElementFactory
componentResources
- identifies componenttoken
- token containing value with expansionspublic RenderCommand newExpansionElement(ComponentResources componentResources, ExpansionToken token)
PageElementFactory
newExpansionElement
in interface PageElementFactory
componentResources
- identifies the componenttoken
- contains expansion expressionpublic Binding newBinding(String parameterName, ComponentResources loadingComponentResources, ComponentResources embeddedComponentResources, String defaultBindingPrefix, String expression, Location location)
PageElementFactory
BindingSource.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 PageElementFactory
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.