public interface PropertyValueComponentSource extends PropertyComponentSource, PropertySetBound
ValueComponents bound to a Property set, i.e. a container of
ValueComponent and Property bindings.| Modifier and Type | Method and Description |
|---|---|
<T> Optional<ValueComponent<T>> |
getValueComponent(com.holonplatform.core.property.Property<T> property)
Get the
ValueComponent bound to given property, if any. |
Iterable<ValueComponent> |
getValueComponents()
Gets all the
ValueComponents that have been bound to a property. |
default <T> ValueComponent<T> |
requireValueComponent(com.holonplatform.core.property.Property<T> property)
Get the
ValueComponent bound to given property, throwing and exception is the component is
not available. |
Stream<PropertyBinding<?,ValueComponent<?>>> |
streamOfValueComponents()
|
getComponents, streamOfComponentsgetProperties, hasProperty, propertyStreamIterable<ValueComponent> getValueComponents()
ValueComponents that have been bound to a property.Iterable on all property bound ValueComponents<T> Optional<ValueComponent<T>> getValueComponent(com.holonplatform.core.property.Property<T> property)
ValueComponent bound to given property, if any.T - Component typeproperty - Property for which to get the associated ValueComponent (not null)ValueComponent bound to given propertydefault <T> ValueComponent<T> requireValueComponent(com.holonplatform.core.property.Property<T> property)
ValueComponent bound to given property, throwing and exception is the component is
not available.T - Component typeproperty - Property for which to get the associated ValueComponent (not null)ValueComponent bound to given propertyIllegalArgumentException - If a value component is not available for given propertyStream<PropertyBinding<?,ValueComponent<?>>> streamOfValueComponents()
PropertyBinding streamCopyright © 2019 The Holon Platform. All rights reserved.