Interface ReflectiveDataObject

All Known Subinterfaces:
Observable, SharedGraphNode
All Known Implementing Classes:
AbstractSharedGraphNode, Command, InsertElement, ListUpdate, RemoveElement, SetProperty

public interface ReflectiveDataObject
An object with generically accessible properties.
Author:
Bernhard Haumacher
  • Method Summary

    Modifier and Type
    Method
    Description
    default Object
    get(String field)
    Retrieves value of the field with the given name.
    The type identifier for this concrete sub-type.
    default List<String>
    All properties that are supported by this object.
    default void
    set(String field, Object value)
    Sets the value of the property with the given name.
  • Method Details

    • jsonType

      String jsonType()
      The type identifier for this concrete sub-type.
    • properties

      default List<String> properties()
      All properties that are supported by this object.
      See Also:
    • get

      default Object get(String field)
      Retrieves value of the field with the given name.
      Parameters:
      field - The name of the property.
      Returns:
      The value of the property with the given name.
      See Also:
    • set

      default void set(String field, Object value)
      Sets the value of the property with the given name.
      Parameters:
      field - The name of the property to update.
      value - The new value of the property.
      See Also: