Class ParameterModelImpl
- java.lang.Object
-
- org.apache.tapestry5.internal.model.ParameterModelImpl
-
- All Implemented Interfaces:
ParameterModel
public class ParameterModelImpl extends java.lang.Object implements ParameterModel
-
-
Constructor Summary
Constructors Constructor Description ParameterModelImpl(ComponentModel componentModel, java.lang.String name, boolean required, boolean allowNull, java.lang.String defaultBindingPrefix, boolean cached)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentModelgetComponentModel()Identifies the component model in which the parameter is defined.java.lang.StringgetDefaultBindingPrefix()The default binding prefix for the parameter, usually "prop".java.lang.StringgetName()The name of the parameter.booleanisAllowNull()If true, then no check is needed.booleanisCached()booleanisRequired()If true, the parameter is required.
-
-
-
Constructor Detail
-
ParameterModelImpl
public ParameterModelImpl(ComponentModel componentModel, java.lang.String name, boolean required, boolean allowNull, java.lang.String defaultBindingPrefix, boolean cached)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:ParameterModelThe name of the parameter.- Specified by:
getNamein interfaceParameterModel
-
isRequired
public boolean isRequired()
Description copied from interface:ParameterModelIf true, the parameter is required.- Specified by:
isRequiredin interfaceParameterModel
-
getDefaultBindingPrefix
public java.lang.String getDefaultBindingPrefix()
Description copied from interface:ParameterModelThe default binding prefix for the parameter, usually "prop".- Specified by:
getDefaultBindingPrefixin interfaceParameterModel
-
isAllowNull
public boolean isAllowNull()
Description copied from interface:ParameterModelIf true, then no check is needed. If false, then the bound value must not be null.- Specified by:
isAllowNullin interfaceParameterModel
-
isCached
public boolean isCached()
- Specified by:
isCachedin interfaceParameterModel- Returns:
- true if the bound-value is cached in the component during rendering.
-
getComponentModel
public ComponentModel getComponentModel()
Description copied from interface:ParameterModelIdentifies the component model in which the parameter is defined.- Specified by:
getComponentModelin interfaceParameterModel- Returns:
- component model defining the parameter
-
-