Package org.stellar.sdk.xdr
Enum Class SetOptionsResultCode
- All Implemented Interfaces:
Serializable
,Comparable<SetOptionsResultCode>
,Constable
SetOptionsResultCode's original definition in the XDR file is:
enum SetOptionsResultCode { // codes considered as "success" for the operation SET_OPTIONS_SUCCESS = 0, // codes considered as "failure" for the operation SET_OPTIONS_LOW_RESERVE = -1, // not enough funds to add a signer SET_OPTIONS_TOO_MANY_SIGNERS = -2, // max number of signers already reached SET_OPTIONS_BAD_FLAGS = -3, // invalid combination of clear/set flags SET_OPTIONS_INVALID_INFLATION = -4, // inflation account does not exist SET_OPTIONS_CANT_CHANGE = -5, // can no longer change this option SET_OPTIONS_UNKNOWN_FLAG = -6, // can't set an unknown flag SET_OPTIONS_THRESHOLD_OUT_OF_RANGE = -7, // bad value for weight/threshold SET_OPTIONS_BAD_SIGNER = -8, // signer cannot be masterkey SET_OPTIONS_INVALID_HOME_DOMAIN = -9, // malformed home domain SET_OPTIONS_AUTH_REVOCABLE_REQUIRED = -10 // auth revocable is required for clawback };
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic SetOptionsResultCode
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) static SetOptionsResultCode
fromXdrBase64
(String xdr) static SetOptionsResultCode
fromXdrByteArray
(byte[] xdr) int
getValue()
default String
default byte[]
static SetOptionsResultCode
Returns the enum constant of this class with the specified name.static SetOptionsResultCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
SET_OPTIONS_SUCCESS
-
SET_OPTIONS_LOW_RESERVE
-
SET_OPTIONS_TOO_MANY_SIGNERS
-
SET_OPTIONS_BAD_FLAGS
-
SET_OPTIONS_INVALID_INFLATION
-
SET_OPTIONS_CANT_CHANGE
-
SET_OPTIONS_UNKNOWN_FLAG
-
SET_OPTIONS_THRESHOLD_OUT_OF_RANGE
-
SET_OPTIONS_BAD_SIGNER
-
SET_OPTIONS_INVALID_HOME_DOMAIN
-
SET_OPTIONS_AUTH_REVOCABLE_REQUIRED
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue() -
decode
- Throws:
IOException
-
encode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-