public static class StructuralMetadata.EnumType
extends java.lang.Object
| Constructor and Description |
|---|
EnumType(java.lang.String name,
java.util.ArrayList<StructuralMetadata.EnumValue> values)
The constructor of the enum type
|
| Modifier and Type | Method and Description |
|---|---|
StructuralMetadata.EnumValue |
addValue(java.lang.String name,
int value)
Add a new
StructuralMetadata.EnumValue instance with specified name and value |
java.lang.String |
getName()
The name of the enum type
|
java.util.List<StructuralMetadata.EnumValue> |
getValues()
The values of the enum type
|
java.lang.String |
toString()
Gets the string representation of this instance.
|
public EnumType(java.lang.String name,
java.util.ArrayList<StructuralMetadata.EnumValue> values)
name - The name of the enum typevalues - The values definitionpublic java.util.List<StructuralMetadata.EnumValue> getValues()
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Objectpublic StructuralMetadata.EnumValue addValue(java.lang.String name, int value)
StructuralMetadata.EnumValue instance with specified name and value