Class ValueProxy
java.lang.Object
ch.nolix.system.property.proxy.ValueProxy
- All Implemented Interfaces:
NameHolder, MaterializationRequestable, Property, IValueProxy
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddedOrChangedAttribute(INode<?> attribute) voidfillUpAttributesIntoList(ILinkedList<INode<?>> list) Fills up the attributes of the currentPropertyinto 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 MaterializationRequestable
isViewMethods inherited from interface NameHolder
getNameInSingleQuotes, hasName, hasSameNameAs
-
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 blankRuntimeException- if the given valueSpecificationConsumer is nullRuntimeException- if the given valueSpecificationSupplier is null
-
addedOrChangedAttribute
Adds or changes the given attribute to the currentPropertyif the given attribute is for the currentProperty.- Specified by:
addedOrChangedAttributein interfaceProperty- Parameters:
attribute-- Returns:
- true if the given attribute was added or changed to the current
Property, false otherwise
-
getName
- Specified by:
getNamein interfaceNameHolder- Returns:
- the name of the current
NameHolder
-
fillUpAttributesIntoList
Fills up the attributes of the currentPropertyinto the given list.- Specified by:
fillUpAttributesIntoListin interfaceProperty- Parameters:
list-
-
isMaterialized
public boolean isMaterialized()- Specified by:
isMaterializedin interfaceMaterializationRequestable- Returns:
- true if the current
MaterializationRequestableis materialized, false otherwise
-