public class MessageAppendix extends Appendix.AbstractAppendix
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.Prunable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
appendixName |
static Appendix.Parser |
appendixParser |
static int |
appendixType |
Constructor and Description |
---|
MessageAppendix(byte[] message) |
MessageAppendix(byte[] message,
boolean isText) |
MessageAppendix(java.lang.String string) |
MessageAppendix(java.lang.String string,
boolean isText) |
Modifier and Type | Method and Description |
---|---|
void |
apply(Transaction transaction,
Account senderAccount,
Account recipientAccount) |
java.lang.String |
getAppendixName() |
int |
getAppendixType() |
Fee |
getBaselineFee(Transaction transaction) |
byte[] |
getMessage() |
protected int |
getMySize() |
boolean |
isAllowed(Chain chain) |
boolean |
isPhasable() |
boolean |
isText() |
protected void |
putMyBytes(java.nio.ByteBuffer buffer) |
protected void |
putMyJSON(org.json.simple.JSONObject json) |
void |
validate(Transaction transaction) |
getBaselineFeeHeight, getFee, getFullSize, getJSONObject, getNextFee, getNextFeeHeight, getSize, getVersion, isPhased, loadPrunable, loadPrunable, putBytes, validateAtFinish, validateId, verifyVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasAppendix
public static final int appendixType
public static final java.lang.String appendixName
public static final Appendix.Parser appendixParser
public MessageAppendix(byte[] message)
public MessageAppendix(java.lang.String string)
public MessageAppendix(java.lang.String string, boolean isText)
public MessageAppendix(byte[] message, boolean isText)
public int getAppendixType()
public java.lang.String getAppendixName()
getAppendixName
in class Appendix.AbstractAppendix
protected int getMySize()
getMySize
in class Appendix.AbstractAppendix
protected void putMyBytes(java.nio.ByteBuffer buffer)
putMyBytes
in class Appendix.AbstractAppendix
protected void putMyJSON(org.json.simple.JSONObject json)
putMyJSON
in class Appendix.AbstractAppendix
public Fee getBaselineFee(Transaction transaction)
getBaselineFee
in interface Appendix
getBaselineFee
in class Appendix.AbstractAppendix
public void validate(Transaction transaction) throws NxtException.ValidationException
validate
in class Appendix.AbstractAppendix
NxtException.ValidationException
public void apply(Transaction transaction, Account senderAccount, Account recipientAccount)
apply
in class Appendix.AbstractAppendix
public byte[] getMessage()
public boolean isText()
public boolean isPhasable()
isPhasable
in class Appendix.AbstractAppendix
public boolean isAllowed(Chain chain)