Class ParameterModelImpl
java.lang.Object
org.apache.tapestry5.internal.model.ParameterModelImpl
- All Implemented Interfaces:
ParameterModel
-
Constructor Summary
ConstructorsConstructorDescriptionParameterModelImpl
(ComponentModel componentModel, String name, boolean required, boolean allowNull, String defaultBindingPrefix, boolean cached) -
Method Summary
Modifier and TypeMethodDescriptionIdentifies the component model in which the parameter is defined.The default binding prefix for the parameter, usually "prop".getName()
The name of the parameter.boolean
If true, then no check is needed.boolean
isCached()
boolean
If true, the parameter is required.
-
Constructor Details
-
ParameterModelImpl
public ParameterModelImpl(ComponentModel componentModel, String name, boolean required, boolean allowNull, String defaultBindingPrefix, boolean cached)
-
-
Method Details
-
getName
Description copied from interface:ParameterModel
The name of the parameter.- Specified by:
getName
in interfaceParameterModel
-
isRequired
Description copied from interface:ParameterModel
If true, the parameter is required.- Specified by:
isRequired
in interfaceParameterModel
-
getDefaultBindingPrefix
Description copied from interface:ParameterModel
The default binding prefix for the parameter, usually "prop".- Specified by:
getDefaultBindingPrefix
in interfaceParameterModel
-
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
- Specified by:
isCached
in interfaceParameterModel
- Returns:
- true if the bound-value is cached in the component during rendering.
-
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
-