Class ComplexValueImpl

java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.model.ComplexValueImpl
All Implemented Interfaces:
ComplexValue<ComplexValueImpl>

public class ComplexValueImpl extends Object implements ComplexValue<ComplexValueImpl>
  • Field Details

    • TYPE_REFERENCE

      public static final com.fasterxml.jackson.core.type.TypeReference<ComplexValueImpl> TYPE_REFERENCE
  • Constructor Details

    • ComplexValueImpl

      public ComplexValueImpl(TypeComplex type)
  • Method Details

    • getType

      public TypeComplex getType()
    • getProperty

      public <P> P getProperty(Property<P> property)
      Description copied from interface: ComplexValue
      Get the value of the given property.
      Specified by:
      getProperty in interface ComplexValue<ComplexValueImpl>
      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

      public <P> ComplexValueImpl setProperty(Property<P> property, P value)
      Description copied from interface: ComplexValue
      Set the given property to the given value.
      Specified by:
      setProperty in interface ComplexValue<ComplexValueImpl>
      Type Parameters:
      P - The type of the property.
      Parameters:
      property - The property to set.
      value - The value to set the property to.
      Returns:
      this.
    • getAllProperties

      public Map<String,Object> getAllProperties()
    • setAnyProperty

      public void setAnyProperty(String name, Object value)
    • getProperty

      public Object getProperty(String name)
      Description copied from interface: ComplexValue
      Get the custom property with the given name. Only valid for ComplexTypes that are classed as openType, returns null for non-openTypes.
      Specified by:
      getProperty in interface ComplexValue<ComplexValueImpl>
      Parameters:
      name - The name of the custom property to fetch.
      Returns:
      The value of the custom property.
    • setProperty

      public ComplexValueImpl setProperty(String name, Object value)
      Description copied from interface: ComplexValue
      Set the custom property with the given name to the given value. Only valid for ComplexTypes that are classed as openType.
      Specified by:
      setProperty in interface ComplexValue<ComplexValueImpl>
      Parameters:
      name - The name of the custom property to set.
      value - The value of the custom property to set.
      Returns:
      this.
    • createFor

      public static TypeComplex.Instantiator createFor(TypeComplex type)