public enum AllowTrustResultCode extends java.lang.Enum<AllowTrustResultCode> implements XdrElement
enum AllowTrustResultCode
{
// codes considered as "success" for the operation
ALLOW_TRUST_SUCCESS = 0,
// codes considered as "failure" for the operation
ALLOW_TRUST_MALFORMED = -1, // asset is not ASSET_TYPE_ALPHANUM
ALLOW_TRUST_NO_TRUST_LINE = -2, // trustor does not have a trustline
// source account does not require trust
ALLOW_TRUST_TRUST_NOT_REQUIRED = -3,
ALLOW_TRUST_CANT_REVOKE = -4, // source account can't revoke trust,
ALLOW_TRUST_SELF_NOT_ALLOWED = -5, // trusting self is not allowed
ALLOW_TRUST_LOW_RESERVE = -6 // claimable balances can't be created
// on revoke due to low reserves
};
| Enum Constant and Description |
|---|
ALLOW_TRUST_CANT_REVOKE |
ALLOW_TRUST_LOW_RESERVE |
ALLOW_TRUST_MALFORMED |
ALLOW_TRUST_NO_TRUST_LINE |
ALLOW_TRUST_SELF_NOT_ALLOWED |
ALLOW_TRUST_SUCCESS |
ALLOW_TRUST_TRUST_NOT_REQUIRED |
| Modifier and Type | Method and Description |
|---|---|
static AllowTrustResultCode |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static AllowTrustResultCode |
fromXdrBase64(java.lang.String xdr) |
static AllowTrustResultCode |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static AllowTrustResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AllowTrustResultCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOftoXdrBase64, toXdrByteArraypublic static final AllowTrustResultCode ALLOW_TRUST_SUCCESS
public static final AllowTrustResultCode ALLOW_TRUST_MALFORMED
public static final AllowTrustResultCode ALLOW_TRUST_NO_TRUST_LINE
public static final AllowTrustResultCode ALLOW_TRUST_TRUST_NOT_REQUIRED
public static final AllowTrustResultCode ALLOW_TRUST_CANT_REVOKE
public static final AllowTrustResultCode ALLOW_TRUST_SELF_NOT_ALLOWED
public static final AllowTrustResultCode ALLOW_TRUST_LOW_RESERVE
public static AllowTrustResultCode[] values()
for (AllowTrustResultCode c : AllowTrustResultCode.values()) System.out.println(c);
public static AllowTrustResultCode 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 AllowTrustResultCode decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static AllowTrustResultCode fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static AllowTrustResultCode fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException