Class ValueProxy
java.lang.Object
ch.nolix.system.property.proxy.ValueProxy
- All Implemented Interfaces:
INameHolder, MaterializationRequestable, IProperty, IValueProxy
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddedOrChangedAttribute(INode<?> attribute) voidfillUpAttributesIntoList(ILinkedList<INode<?>> list) Fills up the attributes of the currentIPropertyinto the given list.getName()booleanstatic ValueProxywithNameAndValueSpecificationConsumerAndValueSpecificationSupplier(String name, Consumer<INode<?>> valueSpecificationConsumer, Supplier<INode<?>> valueSpecificationSupplier) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface INameHolder
getNameInQuotes, hasName, hasSameNameAsMethods inherited from interface MaterializationRequestable
isView
-
Method Details
-
withNameAndValueSpecificationConsumerAndValueSpecificationSupplier
public static ValueProxy withNameAndValueSpecificationConsumerAndValueSpecificationSupplier(String name, Consumer<INode<?>> valueSpecificationConsumer, Supplier<INode<?>> valueSpecificationSupplier) - Parameters:
name-valueSpecificationConsumer-valueSpecificationSupplier-- Returns:
- a new
ValueProxywith the given name, valueSpecificationConsumer and valueSpecificationSupplier. - Throws:
RuntimeException- if the given name is null or blank.RuntimeException- if the given valueSpecificationConsumer is null.RuntimeException- if the given valueSpecificationSupplier is null.
-
addedOrChangedAttribute
Adds or changes the given attribute to the currentIPropertyif the given attribute is for the currentIProperty.- Specified by:
addedOrChangedAttributein interfaceIProperty- Parameters:
attribute-- Returns:
- true if the given attribute was added or changed to the current
IProperty, false otherwise.
-
getName
- Specified by:
getNamein interfaceINameHolder- Returns:
- the name of the current
INameHolder.
-
fillUpAttributesIntoList
Fills up the attributes of the currentIPropertyinto the given list.- Specified by:
fillUpAttributesIntoListin interfaceIProperty- Parameters:
list-
-
isMaterialized
public boolean isMaterialized()- Specified by:
isMaterializedin interfaceMaterializationRequestable- Returns:
- true if the current
MaterializationRequestableis materialized, false otherwise.
-