public enum ManageDataResultCode extends java.lang.Enum<ManageDataResultCode> implements XdrElement
enum ManageDataResultCode { // codes considered as "success" for the operation MANAGE_DATA_SUCCESS = 0, // codes considered as "failure" for the operation MANAGE_DATA_NOT_SUPPORTED_YET = -1, // The network hasn't moved to this protocol change yet MANAGE_DATA_NAME_NOT_FOUND = -2, // Trying to remove a Data Entry that isn't there MANAGE_DATA_LOW_RESERVE = -3, // not enough funds to create a new Data Entry MANAGE_DATA_INVALID_NAME = -4 // Name not a valid string };
Enum Constant and Description |
---|
MANAGE_DATA_INVALID_NAME |
MANAGE_DATA_LOW_RESERVE |
MANAGE_DATA_NAME_NOT_FOUND |
MANAGE_DATA_NOT_SUPPORTED_YET |
MANAGE_DATA_SUCCESS |
Modifier and Type | Method and Description |
---|---|
static ManageDataResultCode |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static ManageDataResultCode |
fromXdrBase64(java.lang.String xdr) |
static ManageDataResultCode |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static ManageDataResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ManageDataResultCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
toXdrBase64, toXdrByteArray
public static final ManageDataResultCode MANAGE_DATA_SUCCESS
public static final ManageDataResultCode MANAGE_DATA_NOT_SUPPORTED_YET
public static final ManageDataResultCode MANAGE_DATA_NAME_NOT_FOUND
public static final ManageDataResultCode MANAGE_DATA_LOW_RESERVE
public static final ManageDataResultCode MANAGE_DATA_INVALID_NAME
public static ManageDataResultCode[] values()
for (ManageDataResultCode c : ManageDataResultCode.values()) System.out.println(c);
public static ManageDataResultCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static ManageDataResultCode decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static ManageDataResultCode fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static ManageDataResultCode fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException