public class DefaultViewParameterDefinition extends Object implements ViewConfiguration.ViewParameterDefinition
ViewConfiguration.ViewParameterDefinition implementation| Constructor and Description |
|---|
DefaultViewParameterDefinition(String name,
Class<?> type)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Object |
getDefaultValue()
Get optional parameter default value
|
Field |
getField()
Get the view class field bound to this parameter definition
|
String |
getName()
Get the parameter name
|
Method |
getReadMethod()
View parameter field read method, if any
|
Class<?> |
getType()
Get the parameter value type
|
Method |
getWriteMethod()
View parameter field write method, if any
|
int |
hashCode() |
boolean |
isRequired()
Get whether the parameter is required
|
void |
setDefaultValue(Object defaultValue)
Set parameter default value.
|
void |
setField(Field field)
Set the view class field bound to this parameter definition
|
void |
setReadMethod(Method readMethod)
Set the view parameter field read method
|
void |
setRequired(boolean required)
Set whether the parameter is required
|
void |
setWriteMethod(Method writeMethod)
Set the view parameter field write method
|
String |
toString() |
public void setRequired(boolean required)
required - true if parameter is required, false otherwisepublic void setDefaultValue(Object defaultValue)
. (dot) charachter must be used as decimal separatortrue and false are admittedViewParameter.DEFAULT_DATE_PATTERNdefaultValue - Parameter default valuepublic void setField(Field field)
field - View class field bound to this parameter definitionpublic void setReadMethod(Method readMethod)
readMethod - Field read methodpublic void setWriteMethod(Method writeMethod)
writeMethod - Field write methodpublic String getName()
ViewConfiguration.ViewParameterDefinitiongetName in interface ViewConfiguration.ViewParameterDefinitionpublic Class<?> getType()
ViewConfiguration.ViewParameterDefinitiongetType in interface ViewConfiguration.ViewParameterDefinitionpublic boolean isRequired()
ViewConfiguration.ViewParameterDefinitionisRequired in interface ViewConfiguration.ViewParameterDefinitiontrue if parameter is required, false otherwisepublic Object getDefaultValue()
ViewConfiguration.ViewParameterDefinitiongetDefaultValue in interface ViewConfiguration.ViewParameterDefinitionnull if not definedpublic Field getField()
ViewConfiguration.ViewParameterDefinitiongetField in interface ViewConfiguration.ViewParameterDefinitionpublic Method getReadMethod()
ViewConfiguration.ViewParameterDefinitiongetReadMethod in interface ViewConfiguration.ViewParameterDefinitionnull if not availablepublic Method getWriteMethod()
ViewConfiguration.ViewParameterDefinitiongetWriteMethod in interface ViewConfiguration.ViewParameterDefinitionnull if not availableCopyright © 2019 The Holon Platform. All rights reserved.