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
ConstructorsConstructorDescriptionDefault 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.booleanValidate that an object is equal depending on their stored values.Return the symbolic name for this enum value.inthashCode()Return a hash code based on the values of this object.voidsetSymbolicName(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, 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:
cloneFromSubclassin classPropertyValue- Returns:
- subclass of PropertyValue
-
valueAsString
Return the string version of the value - used for error logging.- Specified by:
valueAsStringin classPropertyValue- Returns:
- string value
-
valueAsObject
Return the object version of the value - used for comparisons.- Specified by:
valueAsObjectin 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:
toStringin classPropertyValue- Returns:
- JSON style description of variables.
-
equals
Validate that an object is equal depending on their stored values.- Overrides:
equalsin classPropertyValue- Parameters:
objectToCompare- object- Returns:
- boolean result
-
hashCode
public int hashCode()Return a hash code based on the values of this object.- Overrides:
hashCodein classPropertyValue- Returns:
- in hash code
-