public class EnumValue extends Object
The value of an EnumValue is comprised of at least three tokens and possibly a label: [enum integer value] [enum value name] [enum description] <: label> For example: 0 ABSTRACT Here is the definition of abstract. : Abstract
Within an EnumDefinition, each EnumValue must have a unique integer identifier and a unique value name.
The enum value name is automatically set to uppercase, even if it is specified in lower or mixed case.
| Constructor and Description |
|---|
EnumValue()
Constructs a new EnumValue.
|
EnumValue(EnumValue original)
Constructs a new EnumValue.
|
EnumValue(String v)
Constructs a new EnumValue with the specified value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeIt(DmcInputStreamIF dis) |
String |
getDescription() |
Integer |
getId() |
String |
getLabel() |
String |
getName() |
void |
serializeIt(DmcOutputStreamIF dos) |
void |
set(String v)
Sets the value of the EnumValue.
|
String |
toString()
Returns the EnumValue in its string representation.
|
public EnumValue()
public EnumValue(EnumValue original)
public EnumValue(String v) throws DmcValueException
DmcValueExceptionpublic void set(String v) throws DmcValueException
v - The enum value.ResultException - If the specified string doesn't match the appropriate
value format.DmcValueExceptionpublic String toString()
public Integer getId()
public String getName()
public String getDescription()
public String getLabel()
public void serializeIt(DmcOutputStreamIF dos) throws Exception
Exceptionpublic void deserializeIt(DmcInputStreamIF dis) throws Exception
ExceptionCopyright © 2023. All rights reserved.