public class EnumPropertyValue extends InstancePropertyValue
| Constructor and Description |
|---|
EnumPropertyValue()
Default constructor initializes an empty enum value
|
EnumPropertyValue(EnumPropertyValue template)
Copy/clone constructor initializes the enum with the values from the template.
|
| Modifier and Type | Method and Description |
|---|---|
InstancePropertyValue |
cloneFromSubclass()
Delegate the process of cloning to the subclass.
|
boolean |
equals(Object objectToCompare)
Validate that an object is equal depending on their stored values.
|
String |
getDescription()
Return the description for this enum.
|
int |
getOrdinal()
Return the integer ordinal for this enum.
|
String |
getSymbolicName()
Return the symbolic name for this enum value.
|
int |
hashCode()
Return a hash code based on the values of this object.
|
void |
setDescription(String description)
Set up the description for this enum.
|
void |
setOrdinal(int ordinal)
Set the integer ordinal for this enum.
|
void |
setSymbolicName(String symbolicName)
Set up the symbolic name for this enum value.
|
String |
toString()
Standard toString method.
|
Object |
valueAsObject()
Return the object version of the value - used for comparisons.
|
String |
valueAsString()
Return the string version of the value - used for error logging.
|
getInstancePropertyCategory, getTypeGUID, getTypeName, mapValuesAsObject, mapValuesAsString, setInstancePropertyCategory, setTypeGUID, setTypeNamepublic EnumPropertyValue()
public EnumPropertyValue(EnumPropertyValue template)
template - EnumPropertyValue to copypublic InstancePropertyValue cloneFromSubclass()
cloneFromSubclass in class InstancePropertyValuepublic String valueAsString()
valueAsString in class InstancePropertyValuepublic Object valueAsObject()
valueAsObject in class InstancePropertyValuepublic int getOrdinal()
public void setOrdinal(int ordinal)
ordinal - intpublic String getSymbolicName()
public void setSymbolicName(String symbolicName)
symbolicName - String symbolic namepublic String getDescription()
public void setDescription(String description)
description - String descriptionpublic String toString()
toString in class InstancePropertyValuepublic boolean equals(Object objectToCompare)
equals in class InstancePropertyValueobjectToCompare - objectpublic int hashCode()
hashCode in class InstancePropertyValueCopyright © 2018–2020 ODPi. All rights reserved.