Class EnumPropertyValue
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.governanceaction.search.PropertyValue
-
- org.odpi.openmetadata.frameworks.governanceaction.search.EnumPropertyValue
-
- All Implemented Interfaces:
Serializable
public class EnumPropertyValue extends PropertyValue
An EnumPropertyValue stores the value for an enum property.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EnumPropertyValue()Default constructor initializes an empty enum valueEnumPropertyValue(EnumPropertyValue template)Copy/clone constructor initializes the enum with the values from the template.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyValuecloneFromSubclass()Delegate the process of cloning to the subclass.booleanequals(Object objectToCompare)Validate that an object is equal depending on their stored values.StringgetSymbolicName()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.StringtoString()Standard toString method.ObjectvalueAsObject()Return the object version of the value - used for comparisons.StringvalueAsString()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 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
-
cloneFromSubclass
public PropertyValue cloneFromSubclass()
Delegate the process of cloning to the subclass.- Specified by:
cloneFromSubclassin classPropertyValue- Returns:
- subclass of PropertyValue
-
valueAsString
public String valueAsString()
Return the string version of the value - used for error logging.- Specified by:
valueAsStringin classPropertyValue- Returns:
- string value
-
valueAsObject
public Object valueAsObject()
Return the object version of the value - used for comparisons.- Specified by:
valueAsObjectin classPropertyValue- 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:
toStringin classPropertyValue- Returns:
- JSON style description of variables.
-
equals
public boolean equals(Object objectToCompare)
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
-
-