Class StructTypePropertyValue

java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.search.PropertyValue
org.odpi.openmetadata.frameworks.governanceaction.search.StructTypePropertyValue

public class StructTypePropertyValue extends PropertyValue
StructTypePropertyValue 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.
  • Constructor Details

    • StructTypePropertyValue

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

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

    • cloneFromSubclass

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

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

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

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

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

      public String toString()
      Standard toString method.
      Overrides:
      toString in class PropertyValue
      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 PropertyValue
      Parameters:
      objectToCompare - object
      Returns:
      boolean result
    • hashCode

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