All Implemented Interfaces:
Serializable

public class StructPropertyValue extends InstancePropertyValue
StructPropertyValue supports the value part of property that is defined as a complex structure. It manages a list of properties that cover the fields in the structure.
See Also:
  • Constructor Details

    • StructPropertyValue

      public StructPropertyValue()
      Default constructor set StructPropertyValue to null.
    • StructPropertyValue

      public StructPropertyValue(StructPropertyValue template)
      Copy/clone constructor sets up the values based on the template.
      Parameters:
      template - StructPropertyValue to copy.
  • Method Details

    • cloneFromSubclass

      public InstancePropertyValue cloneFromSubclass()
      Delegate the process of cloning to the subclass.
      Specified by:
      cloneFromSubclass in class InstancePropertyValue
      Returns:
      subclass of InstancePropertyValue
    • valueAsString

      public String valueAsString()
      Return the string version of the value - used for error logging.
      Specified by:
      valueAsString in class InstancePropertyValue
      Returns:
      string value
    • valueAsObject

      public Object valueAsObject()
      Return the object version of the value - used for comparisons.
      Specified by:
      valueAsObject in class InstancePropertyValue
      Returns:
      object value
    • getAttributes

      public InstanceProperties getAttributes()
      Return the attributes that make up the fields of the struct.
      Returns:
      attributes InstanceProperties iterator
    • setAttributes

      public void setAttributes(InstanceProperties attributes)
      Set up the attributes that make up the fields of the struct.
      Parameters:
      attributes - InstanceProperties iterator
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class InstancePropertyValue
      Returns:
      JSON style description of variables.
    • equals

      public boolean equals(Object objectToCompare)
      Validate that an object is equal depending on their stored values.
      Overrides:
      equals in class InstancePropertyValue
      Parameters:
      objectToCompare - object
      Returns:
      boolean result
    • hashCode

      public int hashCode()
      Return a hash code based on the property values
      Overrides:
      hashCode in class InstancePropertyValue
      Returns:
      int hash code