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
-
-
Constructor Summary
Constructors Constructor Description MutableEmbeddedComponentModelImpl(java.lang.String id, java.lang.String componentType, java.lang.String componentClassName, java.lang.String declaredClass, boolean inheritInformalParameters, Location location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMixin(java.lang.String mixinClassName, java.lang.String... constraints)Adds a mixin to the component in terms of its fully qualified class name, with optional ordering constraints.voidaddParameter(java.lang.String name, java.lang.String value)java.lang.StringgetComponentClassName()The class name of the component, as derived from the field to which theComponentannotation is applied.java.lang.StringgetComponentType()The type of the component, which may be blank.java.lang.String[]getConstraintsForMixin(java.lang.String mixinClassName)java.lang.StringgetId()A unique id for the embedded component.booleangetInheritInformalParameters()If true, then the component should inherit informal parameters from its container.java.util.List<java.lang.String>getMixinClassNames()Returns the fully qualified class names of all mixins added to this component, sorted alphabetically.java.util.List<java.lang.String>getParameterNames()A sorted list of the names of all bound parameters.java.lang.StringgetParameterValue(java.lang.String parameterName)The value for each parameter, which will be interpreted as a binding expression.java.util.List<java.lang.String>getPublishedParameters()Returns the list of published parameters of this component (usually an empty list).voidsetPublishedParameters(java.util.List<java.lang.String> parameterNames)Sets the list of published parameters for this embedded component.java.lang.StringtoString()-
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
-
-
-
-
Constructor Detail
-
MutableEmbeddedComponentModelImpl
public MutableEmbeddedComponentModelImpl(java.lang.String id, java.lang.String componentType, java.lang.String componentClassName, java.lang.String declaredClass, boolean inheritInformalParameters, Location location)
-
-
Method Detail
-
getComponentClassName
public java.lang.String getComponentClassName()
Description copied from interface:EmbeddedComponentModelThe class name of the component, as derived from the field to which theComponentannotation is applied. This value is only used when the componentType property is blank.- Specified by:
getComponentClassNamein interfaceEmbeddedComponentModel
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
addParameter
public void addParameter(java.lang.String name, java.lang.String value)
- Specified by:
addParameterin interfaceMutableEmbeddedComponentModel
-
getId
public java.lang.String getId()
Description copied from interface:EmbeddedComponentModelA unique id for the embedded component.- Specified by:
getIdin interfaceEmbeddedComponentModel
-
getComponentType
public java.lang.String getComponentType()
Description copied from interface:EmbeddedComponentModelThe type of the component, which may be blank.- Specified by:
getComponentTypein interfaceEmbeddedComponentModel
-
getParameterNames
public java.util.List<java.lang.String> getParameterNames()
Description copied from interface:EmbeddedComponentModelA sorted list of the names of all bound parameters.- Specified by:
getParameterNamesin interfaceEmbeddedComponentModel
-
getParameterValue
public java.lang.String getParameterValue(java.lang.String parameterName)
Description copied from interface:EmbeddedComponentModelThe value for each parameter, which will be interpreted as a binding expression.- Specified by:
getParameterValuein interfaceEmbeddedComponentModel
-
getMixinClassNames
public java.util.List<java.lang.String> getMixinClassNames()
Description copied from interface:EmbeddedComponentModelReturns the fully qualified class names of all mixins added to this component, sorted alphabetically.- Specified by:
getMixinClassNamesin interfaceEmbeddedComponentModel
-
addMixin
public void addMixin(java.lang.String mixinClassName, java.lang.String... constraints)
Description copied from interface:MutableEmbeddedComponentModelAdds a mixin to the component in terms of its fully qualified class name, with optional ordering constraints.- Specified by:
addMixinin interfaceMutableEmbeddedComponentModel
-
getInheritInformalParameters
public boolean getInheritInformalParameters()
Description copied from interface:EmbeddedComponentModelIf true, then the component should inherit informal parameters from its container.- Specified by:
getInheritInformalParametersin interfaceEmbeddedComponentModel
-
setPublishedParameters
public void setPublishedParameters(java.util.List<java.lang.String> parameterNames)
Description copied from interface:MutableEmbeddedComponentModelSets the list of published parameters for this embedded component.- Specified by:
setPublishedParametersin interfaceMutableEmbeddedComponentModel- Parameters:
parameterNames- list of names- See Also:
Component.publishParameters()
-
getPublishedParameters
public java.util.List<java.lang.String> getPublishedParameters()
Description copied from interface:EmbeddedComponentModelReturns the list of published parameters of this component (usually an empty list).- Specified by:
getPublishedParametersin interfaceEmbeddedComponentModel- Returns:
- list of parameter names to publish
- See Also:
Component.publishParameters()
-
getConstraintsForMixin
public java.lang.String[] getConstraintsForMixin(java.lang.String mixinClassName)
- Specified by:
getConstraintsForMixinin interfaceEmbeddedComponentModel- Returns:
- the ordering constraints for the specified mixin, or null.
-
-