public class ConfEnumeration extends ConfValue implements Cloneable, Serializable, Comparable<ConfEnumeration>
J_BINARY, J_BIT32, J_BIT64, J_BOOL, J_BUF, J_CDBBEGIN, J_DATE, J_DATETIME, J_DECIMAL64, J_DEFAULT, J_DOUBLE, J_DQUAD, J_DURATION, J_ENUMERATION, J_HEXSTR, J_IDENTITYREF, J_INSTANCE_IDENTIFIER, J_INT16, J_INT32, J_INT64, J_INT8, J_IPV4, J_IPV4_AND_PLEN, J_IPV4PREFIX, J_IPV6, J_IPV6_AND_PLEN, J_IPV6PREFIX, J_LIST, J_NOEXISTS, J_OBJECTREF, J_OID, J_PTR, J_QNAME, J_STR, J_SYMBOL, J_TIME, J_UINT16, J_UINT32, J_UINT64, J_UINT8, J_UNION, J_XMLBEGIN, J_XMLBEGINDEL, J_XMLEND, J_XMLTAG| Constructor and Description |
|---|
ConfEnumeration(ConfEObject o) |
ConfEnumeration(int ordinalValue)
Constructor for ordinalvalue.
|
ConfEnumeration(int ordinalValue,
ArrayList<ConfNamespace> ns_list)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ConfEnumeration o) |
ConfEObject |
encode()
encode value.
|
boolean |
equals(Object o)
Determine if two ConfValue are equal.
|
static ConfEnumeration |
getEnumByLabel(ConfPath path,
String label)
Get an ConfEnumeration from the string label at a given
position in the schema.
|
static ConfEnumeration |
getEnumByLabel(String path,
String label)
Get an ConfEnumeration from the string label at a given
position in the schema.
|
static String |
getLabelByEnum(ConfPath path,
ConfEnumeration e)
Get the string label of an enumeration at a given
position in the schema.
|
static String |
getLabelByEnum(String path,
ConfEnumeration e)
Get the string label of an enumeration at a given
position in the schema.
|
int |
getOrdinalValue()
Get the ordinal value (integer value) for this enumeration.
|
int |
hashCode()
Java object hash code for this object instance
|
void |
setCSType(MaapiSchemas.CSType csType)
The MaapiSchemas type for this enum.
|
String |
toString()
Get the string value for this enumeration.
|
getStringByValue, getStringByValue, getValueByString, getValueByStringclone, decodepublic ConfEnumeration(ConfEObject o) throws ConfException
ConfExceptionpublic ConfEnumeration(int ordinalValue)
throws ConfException
ordinalValue - ConfException@Deprecated public ConfEnumeration(int ordinalValue, ArrayList<ConfNamespace> ns_list) throws ConfException
ordinalValue - ns_list - ConfExceptionpublic int compareTo(ConfEnumeration o)
compareTo in interface Comparable<ConfEnumeration>public ConfEObject encode()
ConfValuepublic boolean equals(Object o)
ConfValuepublic static ConfEnumeration getEnumByLabel(ConfPath path, String label) throws ConfException
path - ConfPath pointing to the position of Enumeration
in the schema.label - String label for enum valueConfExceptionpublic static ConfEnumeration getEnumByLabel(String path, String label) throws ConfException
path - String pointing to the position of Enumeration
in the schema.label - String label for enum valueConfExceptionpublic static String getLabelByEnum(ConfPath path, ConfEnumeration e) throws ConfException
path - ConfPath pointing to the position of Enumeration
in the schema.e - ConfEnumeration containing ordinal valueConfExceptionpublic static String getLabelByEnum(String path, ConfEnumeration e) throws ConfException
path - String pathe - ConfEnumeration containing ordinal valueConfExceptionpublic int getOrdinalValue()
public int hashCode()
public void setCSType(MaapiSchemas.CSType csType)
csType - MaapiSchemas.CsTypepublic String toString()