Class ParameterModelImpl
- java.lang.Object
-
- org.apache.tapestry5.internal.model.ParameterModelImpl
-
- All Implemented Interfaces:
ParameterModel
public class ParameterModelImpl extends Object implements ParameterModel
-
-
Constructor Summary
Constructors Constructor Description ParameterModelImpl(ComponentModel componentModel, String name, boolean required, boolean allowNull, 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.StringgetDefaultBindingPrefix()The default binding prefix for the parameter, usually "prop".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, String name, boolean required, boolean allowNull, String defaultBindingPrefix, boolean cached)
-
-
Method Detail
-
getName
public 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 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
-
-