public enum AccountFlags extends java.lang.Enum<AccountFlags> implements XdrElement
enum AccountFlags { // masks for each flag // Flags set on issuer accounts // TrustLines are created with authorized set to "false" requiring // the issuer to set it for each TrustLine AUTH_REQUIRED_FLAG = 0x1, // If set, the authorized flag in TrustLines can be cleared // otherwise, authorization cannot be revoked AUTH_REVOCABLE_FLAG = 0x2, // Once set, causes all AUTH_* flags to be read-only AUTH_IMMUTABLE_FLAG = 0x4, // Trustlines are created with clawback enabled set to "true", // and claimable balances created from those trustlines are created // with clawback enabled set to "true" AUTH_CLAWBACK_ENABLED_FLAG = 0x8 };
Enum Constant and Description |
---|
AUTH_CLAWBACK_ENABLED_FLAG |
AUTH_IMMUTABLE_FLAG |
AUTH_REQUIRED_FLAG |
AUTH_REVOCABLE_FLAG |
Modifier and Type | Method and Description |
---|---|
static AccountFlags |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static AccountFlags |
fromXdrBase64(java.lang.String xdr) |
static AccountFlags |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static AccountFlags |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AccountFlags[] |
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 AccountFlags AUTH_REQUIRED_FLAG
public static final AccountFlags AUTH_REVOCABLE_FLAG
public static final AccountFlags AUTH_IMMUTABLE_FLAG
public static final AccountFlags AUTH_CLAWBACK_ENABLED_FLAG
public static AccountFlags[] values()
for (AccountFlags c : AccountFlags.values()) System.out.println(c);
public static AccountFlags 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 AccountFlags 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 AccountFlags fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static AccountFlags fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException