public enum ChangeTrustResultCode extends java.lang.Enum<ChangeTrustResultCode> implements XdrElement
enum ChangeTrustResultCode { // codes considered as "success" for the operation CHANGE_TRUST_SUCCESS = 0, // codes considered as "failure" for the operation CHANGE_TRUST_MALFORMED = -1, // bad input CHANGE_TRUST_NO_ISSUER = -2, // could not find issuer CHANGE_TRUST_INVALID_LIMIT = -3, // cannot drop limit below balance // cannot create with a limit of 0 CHANGE_TRUST_LOW_RESERVE = -4, // not enough funds to create a new trust line, CHANGE_TRUST_SELF_NOT_ALLOWED = -5, // trusting self is not allowed CHANGE_TRUST_TRUST_LINE_MISSING = -6, // Asset trustline is missing for pool CHANGE_TRUST_CANNOT_DELETE = -7, // Asset trustline is still referenced in a pool CHANGE_TRUST_NOT_AUTH_MAINTAIN_LIABILITIES = -8 // Asset trustline is deauthorized };
Modifier and Type | Method and Description |
---|---|
static ChangeTrustResultCode |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static ChangeTrustResultCode |
fromXdrBase64(java.lang.String xdr) |
static ChangeTrustResultCode |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static ChangeTrustResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChangeTrustResultCode[] |
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 ChangeTrustResultCode CHANGE_TRUST_SUCCESS
public static final ChangeTrustResultCode CHANGE_TRUST_MALFORMED
public static final ChangeTrustResultCode CHANGE_TRUST_NO_ISSUER
public static final ChangeTrustResultCode CHANGE_TRUST_INVALID_LIMIT
public static final ChangeTrustResultCode CHANGE_TRUST_LOW_RESERVE
public static final ChangeTrustResultCode CHANGE_TRUST_SELF_NOT_ALLOWED
public static final ChangeTrustResultCode CHANGE_TRUST_TRUST_LINE_MISSING
public static final ChangeTrustResultCode CHANGE_TRUST_CANNOT_DELETE
public static final ChangeTrustResultCode CHANGE_TRUST_NOT_AUTH_MAINTAIN_LIABILITIES
public static ChangeTrustResultCode[] values()
for (ChangeTrustResultCode c : ChangeTrustResultCode.values()) System.out.println(c);
public static ChangeTrustResultCode 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 ChangeTrustResultCode 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 ChangeTrustResultCode fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static ChangeTrustResultCode fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException