public class PrunablePlainMessageAppendix extends Appendix.AbstractAppendix implements Appendix.Prunable
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 |
|---|
PrunablePlainMessageAppendix(byte[] message) |
PrunablePlainMessageAppendix(byte[] message,
boolean isText) |
PrunablePlainMessageAppendix(java.lang.String string) |
PrunablePlainMessageAppendix(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[] |
getHash() |
byte[] |
getMessage() |
int |
getMyFullSize() |
protected int |
getMySize() |
boolean |
hasPrunableData() |
boolean |
isAllowed(Chain chain) |
boolean |
isPhasable() |
boolean |
isText() |
void |
loadPrunable(Transaction transaction,
boolean includeExpiredPrunable) |
protected void |
putMyBytes(java.nio.ByteBuffer buffer) |
protected void |
putMyJSON(org.json.simple.JSONObject json) |
void |
putMyPrunableBytes(java.nio.ByteBuffer buffer) |
void |
restorePrunableData(Transaction transaction,
int blockTimestamp,
int height) |
void |
validate(Transaction transaction) |
getBaselineFeeHeight, getFee, getFullSize, getJSONObject, getNextFee, getNextFeeHeight, getSize, getVersion, isPhased, loadPrunable, putBytes, validateAtFinish, validateId, verifyVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshouldLoadPrunablehasAppendixpublic static final int appendixType
public static final java.lang.String appendixName
public static final Appendix.Parser appendixParser
public PrunablePlainMessageAppendix(byte[] message)
public PrunablePlainMessageAppendix(java.lang.String string)
public PrunablePlainMessageAppendix(java.lang.String string,
boolean isText)
public PrunablePlainMessageAppendix(byte[] message,
boolean isText)
public int getAppendixType()
getAppendixType in interface Appendixpublic java.lang.String getAppendixName()
getAppendixName in class Appendix.AbstractAppendixpublic Fee getBaselineFee(Transaction transaction)
getBaselineFee in interface AppendixgetBaselineFee in class Appendix.AbstractAppendixprotected int getMySize()
getMySize in class Appendix.AbstractAppendixpublic int getMyFullSize()
getMyFullSize in interface Appendix.Prunableprotected void putMyBytes(java.nio.ByteBuffer buffer)
putMyBytes in class Appendix.AbstractAppendixpublic void putMyPrunableBytes(java.nio.ByteBuffer buffer)
putMyPrunableBytes in interface Appendix.Prunableprotected void putMyJSON(org.json.simple.JSONObject json)
putMyJSON in class Appendix.AbstractAppendixpublic void validate(Transaction transaction) throws NxtException.ValidationException
validate in class Appendix.AbstractAppendixNxtException.ValidationExceptionpublic void apply(Transaction transaction, Account senderAccount, Account recipientAccount)
apply in class Appendix.AbstractAppendixpublic byte[] getMessage()
public boolean isText()
public byte[] getHash()
getHash in interface Appendix.Prunablepublic final void loadPrunable(Transaction transaction, boolean includeExpiredPrunable)
loadPrunable in class Appendix.AbstractAppendixpublic boolean isPhasable()
isPhasable in class Appendix.AbstractAppendixpublic final boolean hasPrunableData()
hasPrunableData in interface Appendix.Prunablepublic void restorePrunableData(Transaction transaction, int blockTimestamp, int height)
restorePrunableData in interface Appendix.Prunable