Class ValueProxy

java.lang.Object
ch.nolix.system.property.proxy.ValueProxy
All Implemented Interfaces:
NameHolder, MaterializationRequestable, Property, IValueProxy

public final class ValueProxy extends Object implements IValueProxy
Author:
Silvan Wyss
  • Method Details

    • withNameAndValueSpecificationConsumerAndValueSpecificationSupplier

      public static ValueProxy withNameAndValueSpecificationConsumerAndValueSpecificationSupplier(String name, Consumer<INode<?>> valueSpecificationConsumer, Supplier<INode<?>> valueSpecificationSupplier)
      Parameters:
      name -
      valueSpecificationConsumer -
      valueSpecificationSupplier -
      Returns:
      a new ValueProxy with 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

      public boolean addedOrChangedAttribute(INode<?> attribute)
      Adds or changes the given attribute to the current Property if the given attribute is for the current Property.
      Specified by:
      addedOrChangedAttribute in interface Property
      Parameters:
      attribute -
      Returns:
      true if the given attribute was added or changed to the current Property, false otherwise
    • getName

      public String getName()
      Specified by:
      getName in interface NameHolder
      Returns:
      the name of the current NameHolder
    • fillUpAttributesIntoList

      public void fillUpAttributesIntoList(ILinkedList<INode<?>> list)
      Fills up the attributes of the current Property into the given list.
      Specified by:
      fillUpAttributesIntoList in interface Property
      Parameters:
      list -
    • isMaterialized

      public boolean isMaterialized()
      Specified by:
      isMaterialized in interface MaterializationRequestable
      Returns:
      true if the current MaterializationRequestable is materialized, false otherwise