Class EnumPropertyValue

    • Constructor Detail

      • EnumPropertyValue

        public EnumPropertyValue()
        Default constructor initializes an empty enum value
      • EnumPropertyValue

        public EnumPropertyValue​(EnumPropertyValue template)
        Copy/clone constructor initializes the enum with the values from the template.
        Parameters:
        template - EnumPropertyValue to copy
    • Method Detail

      • 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
      • getSymbolicName

        public String getSymbolicName()
        Return the symbolic name for this enum value.
        Returns:
        String symbolic name
      • setSymbolicName

        public void setSymbolicName​(String symbolicName)
        Set up the symbolic name for this enum value.
        Parameters:
        symbolicName - String symbolic name
      • 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 values of this object.
        Overrides:
        hashCode in class PropertyValue
        Returns:
        in hash code