Class MutableEmbeddedComponentModelImpl
- java.lang.Object
-
- org.apache.tapestry5.ioc.BaseLocatable
-
- org.apache.tapestry5.internal.model.MutableEmbeddedComponentModelImpl
-
- All Implemented Interfaces:
Locatable
,EmbeddedComponentModel
,MutableEmbeddedComponentModel
public class MutableEmbeddedComponentModelImpl extends BaseLocatable implements MutableEmbeddedComponentModel
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMixin(String mixinClassName, String... constraints)
Adds a mixin to the component in terms of its fully qualified class name, with optional ordering constraints.void
addParameter(String name, String value)
String
getComponentClassName()
The class name of the component, as derived from the field to which theComponent
annotation is applied.String
getComponentType()
The type of the component, which may be blank.String[]
getConstraintsForMixin(String mixinClassName)
String
getId()
A unique id for the embedded component.boolean
getInheritInformalParameters()
If true, then the component should inherit informal parameters from its container.List<String>
getMixinClassNames()
Returns the fully qualified class names of all mixins added to this component, sorted alphabetically.List<String>
getParameterNames()
A sorted list of the names of all bound parameters.String
getParameterValue(String parameterName)
The value for each parameter, which will be interpreted as a binding expression.List<String>
getPublishedParameters()
Returns the list of published parameters of this component (usually an empty list).void
setPublishedParameters(List<String> parameterNames)
Sets the list of published parameters for this embedded component.String
toString()
-
Methods inherited from class org.apache.tapestry5.ioc.BaseLocatable
getLocation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.tapestry5.commons.Locatable
getLocation
-
-
-
-
Method Detail
-
getComponentClassName
public String getComponentClassName()
Description copied from interface:EmbeddedComponentModel
The class name of the component, as derived from the field to which theComponent
annotation is applied. This value is only used when the componentType property is blank.- Specified by:
getComponentClassName
in interfaceEmbeddedComponentModel
-
addParameter
public void addParameter(String name, String value)
- Specified by:
addParameter
in interfaceMutableEmbeddedComponentModel
-
getId
public String getId()
Description copied from interface:EmbeddedComponentModel
A unique id for the embedded component.- Specified by:
getId
in interfaceEmbeddedComponentModel
-
getComponentType
public String getComponentType()
Description copied from interface:EmbeddedComponentModel
The type of the component, which may be blank.- Specified by:
getComponentType
in interfaceEmbeddedComponentModel
-
getParameterNames
public List<String> getParameterNames()
Description copied from interface:EmbeddedComponentModel
A sorted list of the names of all bound parameters.- Specified by:
getParameterNames
in interfaceEmbeddedComponentModel
-
getParameterValue
public String getParameterValue(String parameterName)
Description copied from interface:EmbeddedComponentModel
The value for each parameter, which will be interpreted as a binding expression.- Specified by:
getParameterValue
in interfaceEmbeddedComponentModel
-
getMixinClassNames
public List<String> getMixinClassNames()
Description copied from interface:EmbeddedComponentModel
Returns the fully qualified class names of all mixins added to this component, sorted alphabetically.- Specified by:
getMixinClassNames
in interfaceEmbeddedComponentModel
-
addMixin
public void addMixin(String mixinClassName, String... constraints)
Description copied from interface:MutableEmbeddedComponentModel
Adds a mixin to the component in terms of its fully qualified class name, with optional ordering constraints.- Specified by:
addMixin
in interfaceMutableEmbeddedComponentModel
-
getInheritInformalParameters
public boolean getInheritInformalParameters()
Description copied from interface:EmbeddedComponentModel
If true, then the component should inherit informal parameters from its container.- Specified by:
getInheritInformalParameters
in interfaceEmbeddedComponentModel
-
setPublishedParameters
public void setPublishedParameters(List<String> parameterNames)
Description copied from interface:MutableEmbeddedComponentModel
Sets the list of published parameters for this embedded component.- Specified by:
setPublishedParameters
in interfaceMutableEmbeddedComponentModel
- Parameters:
parameterNames
- list of names- See Also:
Component.publishParameters()
-
getPublishedParameters
public List<String> getPublishedParameters()
Description copied from interface:EmbeddedComponentModel
Returns the list of published parameters of this component (usually an empty list).- Specified by:
getPublishedParameters
in interfaceEmbeddedComponentModel
- Returns:
- list of parameter names to publish
- See Also:
Component.publishParameters()
-
getConstraintsForMixin
public String[] getConstraintsForMixin(String mixinClassName)
- Specified by:
getConstraintsForMixin
in interfaceEmbeddedComponentModel
- Returns:
- the ordering constraints for the specified mixin, or null.
-
-