Interface PropertyContainer

All Superinterfaces:
IdentifiableElement, Named, PropertyAccessor
All Known Subinterfaces:
Node, Relationship
All Known Implementing Classes:
NodeBase, RelationshipBase

@API(status=STABLE, since="1.1") public interface PropertyContainer extends Named, PropertyAccessor
A container having properties. A property container must be Named with a non empty name to be able to refer to properties.
Since:
1.1
Author:
Andreas Berger, Michael J. Simons
  • Method Details

    • mutate

      Operation mutate(Parameter<?> parameter)
      Creates an Operation mutating the properties of this container to a new value. The container does not track the operations created with this method.
      Parameters:
      parameter - the new properties
      Returns:
      a new operation.
      Since:
      2020.1.5
    • mutate

      Operation mutate(MapExpression properties)
      Creates an Operation mutating the properties of this container to a new value. The container does not track the operations created with this method.
      Parameters:
      properties - the new properties
      Returns:
      a new operation.
      Since:
      2020.1.5
    • set

      Operation set(Parameter<?> parameter)
      Creates an SET operation setting the properties of this container to a new value. The container does not track the operations created with this method.
      Parameters:
      parameter - the new properties
      Returns:
      a new operation.
      Since:
      2022.5.0
    • set

      Operation set(MapExpression properties)
      Creates an SET operation setting the properties of this container to a new value. The container does not track the operations created with this method.
      Parameters:
      properties - the new properties
      Returns:
      a new operation.
      Since:
      2022.5.0
    • project

      MapProjection project(List<Object> entries)
      Unwraps the list of entries into an array before creating a projection out of it.
      Parameters:
      entries - a list of entries for the projection
      Returns:
      a map projection.
      See Also:
    • project

      MapProjection project(Object... entries)
      Creates a map projection based on this container. The container needs a symbolic name for this to work.
      Parameters:
      entries - a list of entries for the projection
      Returns:
      a map projection.
      See Also: