P - type of the property's valuepublic final class PropertyData<P extends Serializable> extends Object implements Serializable
| Constructor and Description |
|---|
PropertyData(String name,
Class<P> type,
boolean readOnly,
P defaultValue)
Constructs a new
PropertyData instance tied to the type of the
property's value given by type. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
P |
getDefaultValue()
Getter for the initial value if given.
|
String |
getName()
Getter for the property name.
|
Class<P> |
getType()
Getter for the property value class type.
|
int |
hashCode() |
boolean |
isReadOnly()
Checks if the property is a read-only value.
|
PropertyData<P> |
updateReadOnly(boolean readOnly)
Creates a copy of
this with the new readOnly value. |
public PropertyData(String name, Class<P> type, boolean readOnly, P defaultValue)
PropertyData instance tied to the type of the
property's value given by type.name - name of the propertytype - type of the property valuereadOnly - is the property read-only (on the client-side)defaultValue - default value for the propertypublic String getName()
public Class<P> getType()
public P getDefaultValue()
null if none givenpublic boolean isReadOnly()
public PropertyData<P> updateReadOnly(boolean readOnly)
this with the new readOnly value.readOnly - new readOnly valuethisCopyright © 2020. All rights reserved.