public static interface PropertyBox.Builder
PropertyBox instances.| Modifier and Type | Method and Description |
|---|---|
PropertyBox |
build()
Build the
PropertyBox |
PropertyBox.Builder |
copyValues(PropertyBox source)
Copy the given
propertyBox property values only for properties of the source PropertyBox that
have a matching with a property of the PropertyBox to build |
PropertyBox.Builder |
invalidAllowed(boolean invalidAllowed)
Set whether to accept invalid property values when using
PropertyBox.setValue(Property, Object) to set a
property value, i.e. to ignore any Validator registered for property. |
<T> PropertyBox.Builder |
set(Property<T> property,
T value)
Set value of given
property. |
<T> PropertyBox.Builder |
setIgnoreReadOnly(Property<T> property,
T value)
Set value of given
property, ignoring property read-only state. |
PropertyBox.Builder invalidAllowed(boolean invalidAllowed)
PropertyBox.setValue(Property, Object) to set a
property value, i.e. to ignore any Validator registered for property. If invalid values are not
allowed and any property Validator do not validate the value, a Validator.ValidationException is thrown
by PropertyBox.setValue(Property, Object).invalidAllowed - true to accept invalid property values (ignore validators),
false otherwise<T> PropertyBox.Builder set(Property<T> property, T value)
property. Value type must be consistent with declared Property type.T - Property typeproperty - Property for which to set the value (not null)value - Value to set<T> PropertyBox.Builder setIgnoreReadOnly(Property<T> property, T value)
property, ignoring property read-only state.T - Property typeproperty - Property for which to set the value (not null)value - Value to setPropertyBox.Builder copyValues(PropertyBox source)
propertyBox property values only for properties of the source PropertyBox that
have a matching with a property of the PropertyBox to buildsource - PropertyBox from which to copy the valuesPropertyBox build()
PropertyBoxCopyright © 2017 The Holon Platform. All rights reserved.