Interface ComplexValue<S extends ComplexValue<S>>

Type Parameters:
S - The type of the complex value (for fluent API)
All Known Implementing Classes:
ComplexValueImpl, Entity, MapValue, TimeInterval, TimeValue, UnitOfMeasurement

public interface ComplexValue<S extends ComplexValue<S>>
Interface that values of complex properties should implement to make it easier to access sub-properties.
  • Method Summary

    Modifier and Type
    Method
    Description
    <P> P
    getProperty(Property<P> property)
    Get the value of the given property.
    Get the custom property with the given name.
    <P> S
    setProperty(Property<P> property, P value)
    Set the given property to the given value.
    setProperty(String name, Object value)
    Set the custom property with the given name to the given value.
  • Method Details

    • getProperty

      <P> P getProperty(Property<P> property)
      Get the value of the given property.
      Type Parameters:
      P - The type of the property and value.
      Parameters:
      property - The property to get the value of.
      Returns:
      the value of the requested property.
    • setProperty

      <P> S setProperty(Property<P> property, P value)
      Set the given property to the given value.
      Type Parameters:
      P - The type of the property.
      Parameters:
      property - The property to set.
      value - The value to set the property to.
      Returns:
      this.
    • getProperty

      Object getProperty(String name)
      Get the custom property with the given name. Only valid for ComplexTypes that are classed as openType, returns null for non-openTypes.
      Parameters:
      name - The name of the custom property to fetch.
      Returns:
      The value of the custom property.
    • setProperty

      S setProperty(String name, Object value)
      Set the custom property with the given name to the given value. Only valid for ComplexTypes that are classed as openType.
      Parameters:
      name - The name of the custom property to set.
      value - The value of the custom property to set.
      Returns:
      this.