Class EnumTypePropertyValue
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.search.PropertyValue
org.odpi.openmetadata.frameworks.governanceaction.search.EnumTypePropertyValue
An EnumTypePropertyValue stores the value for an enum property.
-
Constructor Summary
ConstructorDescriptionDefault constructor initializes an empty enum valueEnumTypePropertyValue
(EnumTypePropertyValue template) Copy/clone constructor initializes the enum with the values from the template. -
Method Summary
Modifier and TypeMethodDescriptionDelegate the process of cloning to the subclass.boolean
Validate that an object is equal depending on their stored values.Return the symbolic name for this enum value.int
hashCode()
Return a hash code based on the values of this object.void
setSymbolicName
(String symbolicName) Set up the symbolic name for this enum value.toString()
Standard toString method.Return the object version of the value - used for comparisons.Return the string version of the value - used for error logging.Methods inherited from class org.odpi.openmetadata.frameworks.governanceaction.search.PropertyValue
getTypeName, mapValuesAsObject, mapValuesAsString, setTypeName
-
Constructor Details
-
EnumTypePropertyValue
public EnumTypePropertyValue()Default constructor initializes an empty enum value -
EnumTypePropertyValue
Copy/clone constructor initializes the enum with the values from the template.- Parameters:
template
- EnumTypePropertyValue to copy
-
-
Method Details
-
cloneFromSubclass
Delegate the process of cloning to the subclass.- Specified by:
cloneFromSubclass
in classPropertyValue
- Returns:
- subclass of PropertyValue
-
valueAsString
Return the string version of the value - used for error logging.- Specified by:
valueAsString
in classPropertyValue
- Returns:
- string value
-
valueAsObject
Return the object version of the value - used for comparisons.- Specified by:
valueAsObject
in classPropertyValue
- Returns:
- object value
-
getSymbolicName
Return the symbolic name for this enum value.- Returns:
- String symbolic name
-
setSymbolicName
Set up the symbolic name for this enum value.- Parameters:
symbolicName
- String symbolic name
-
toString
Standard toString method.- Overrides:
toString
in classPropertyValue
- Returns:
- JSON style description of variables.
-
equals
Validate that an object is equal depending on their stored values.- Overrides:
equals
in classPropertyValue
- Parameters:
objectToCompare
- object- Returns:
- boolean result
-
hashCode
public int hashCode()Return a hash code based on the values of this object.- Overrides:
hashCode
in classPropertyValue
- Returns:
- in hash code
-