public abstract static class Appendix.AbstractAppendix extends java.lang.Object implements Appendix
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.Prunable| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAppendix() |
protected |
AbstractAppendix(java.nio.ByteBuffer buffer) |
protected |
AbstractAppendix(int version) |
protected |
AbstractAppendix(org.json.simple.JSONObject attachmentData) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
apply(Transaction transaction,
Account senderAccount,
Account recipientAccount) |
abstract java.lang.String |
getAppendixName() |
Fee |
getBaselineFee(Transaction transaction) |
int |
getBaselineFeeHeight() |
Fee |
getFee(Transaction transaction,
int height) |
int |
getFullSize() |
org.json.simple.JSONObject |
getJSONObject() |
protected abstract int |
getMySize() |
Fee |
getNextFee(Transaction transaction) |
int |
getNextFeeHeight() |
int |
getSize() |
byte |
getVersion() |
abstract boolean |
isPhasable() |
boolean |
isPhased(Transaction transaction) |
void |
loadPrunable(Transaction transaction) |
void |
loadPrunable(Transaction transaction,
boolean includeExpiredPrunable) |
void |
putBytes(java.nio.ByteBuffer buffer) |
protected abstract void |
putMyBytes(java.nio.ByteBuffer buffer) |
protected abstract void |
putMyJSON(org.json.simple.JSONObject json) |
abstract void |
validate(Transaction transaction) |
void |
validateAtFinish(Transaction transaction) |
void |
validateId(Transaction transaction) |
boolean |
verifyVersion() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAppendixType, hasAppendix, isAllowedprotected AbstractAppendix(org.json.simple.JSONObject attachmentData)
protected AbstractAppendix(java.nio.ByteBuffer buffer)
protected AbstractAppendix(int version)
protected AbstractAppendix()
public abstract java.lang.String getAppendixName()
public final int getFullSize()
getFullSize in interface Appendixprotected abstract int getMySize()
public final void putBytes(java.nio.ByteBuffer buffer)
protected abstract void putMyBytes(java.nio.ByteBuffer buffer)
public final org.json.simple.JSONObject getJSONObject()
getJSONObject in interface Appendixprotected abstract void putMyJSON(org.json.simple.JSONObject json)
public final byte getVersion()
getVersion in interface Appendixpublic boolean verifyVersion()
public int getBaselineFeeHeight()
getBaselineFeeHeight in interface Appendixpublic Fee getBaselineFee(Transaction transaction)
getBaselineFee in interface Appendixpublic int getNextFeeHeight()
getNextFeeHeight in interface Appendixpublic Fee getNextFee(Transaction transaction)
getNextFee in interface Appendixpublic final Fee getFee(Transaction transaction, int height)
public abstract void validate(Transaction transaction) throws NxtException.ValidationException
NxtException.ValidationExceptionpublic void validateId(Transaction transaction) throws NxtException.ValidationException
NxtException.ValidationExceptionpublic void validateAtFinish(Transaction transaction) throws NxtException.ValidationException
NxtException.ValidationExceptionpublic abstract void apply(Transaction transaction, Account senderAccount, Account recipientAccount)
public final void loadPrunable(Transaction transaction)
public void loadPrunable(Transaction transaction, boolean includeExpiredPrunable)
public abstract boolean isPhasable()
public final boolean isPhased(Transaction transaction)