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 ComponentModel
getComponentModel()
Identifies the component model in which the parameter is defined.String
getDefaultBindingPrefix()
The default binding prefix for the parameter, usually "prop".String
getName()
The name of the parameter.boolean
isAllowNull()
If true, then no check is needed.boolean
isCached()
boolean
isRequired()
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:ParameterModel
The name of the parameter.- Specified by:
getName
in interfaceParameterModel
-
isRequired
public boolean isRequired()
Description copied from interface:ParameterModel
If true, the parameter is required.- Specified by:
isRequired
in interfaceParameterModel
-
getDefaultBindingPrefix
public String getDefaultBindingPrefix()
Description copied from interface:ParameterModel
The default binding prefix for the parameter, usually "prop".- Specified by:
getDefaultBindingPrefix
in interfaceParameterModel
-
isAllowNull
public boolean isAllowNull()
Description copied from interface:ParameterModel
If true, then no check is needed. If false, then the bound value must not be null.- Specified by:
isAllowNull
in interfaceParameterModel
-
isCached
public boolean isCached()
- Specified by:
isCached
in interfaceParameterModel
- Returns:
- true if the bound-value is cached in the component during rendering.
-
getComponentModel
public ComponentModel getComponentModel()
Description copied from interface:ParameterModel
Identifies the component model in which the parameter is defined.- Specified by:
getComponentModel
in interfaceParameterModel
- Returns:
- component model defining the parameter
-
-