T - Property typepublic interface VirtualProperty<T> extends Property<T>
Property which relies on a PropertyValueProvider to provide its value, and it is not
directly connected with a data model attribute.PropertyValueProvider| Modifier and Type | Interface and Description |
|---|---|
static interface |
VirtualProperty.Builder<T,B extends VirtualProperty.Builder<T,B>>
Base interface for
VirtualProperty building. |
Property.PropertyAccessException, Property.PropertyNotFoundException, Property.PropertyReadException, Property.PropertyReadOnlyException, Property.PropertyWriteExceptionLocalizable.LocalizableBuilder, Localizable.LocalizationException| Modifier and Type | Method and Description |
|---|---|
static <T> VirtualProperty.Builder<T,?> |
create(Class<? extends T> type)
Create a new VirtualProperty with given
type |
static <T> VirtualProperty.Builder<T,?> |
create(Class<T> type,
PropertyValueProvider<T> valueProvider)
Create a new VirtualProperty with given
type using given PropertyValueProvider as property
value provider. |
PropertyValueProvider<T> |
getValueProvider()
Get property value provider
|
default boolean |
isReadOnly()
Gets whether property is read-only, i.e. does not support value setting.
|
getConfiguration, getConvertedValue, getConverter, getType, present, render, renderIfAvailablegetValidators, validatebuilder, getMessage, getMessageArguments, getMessageCodePropertyValueProvider<T> getValueProvider()
default boolean isReadOnly()
Property
When a property is read-only, a Property.PropertyReadOnlyException should be thrown by property value setting
methods.
isReadOnly in interface Property<T>true if property is read-onlystatic <T> VirtualProperty.Builder<T,?> create(Class<? extends T> type)
typeT - Property value typetype - Property value typeVirtualProperty.Builder to setup property attributesstatic <T> VirtualProperty.Builder<T,?> create(Class<T> type, PropertyValueProvider<T> valueProvider)
type using given PropertyValueProvider as property
value provider.T - Property value typetype - Property value typevalueProvider - Property value providerVirtualProperty.Builder to setup property attributesCopyright © 2017 The Holon Platform. All rights reserved.