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, wait
getAppendixType, hasAppendix, isAllowed
protected 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 Appendix
protected 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 Appendix
protected abstract void putMyJSON(org.json.simple.JSONObject json)
public final byte getVersion()
getVersion
in interface Appendix
public boolean verifyVersion()
public int getBaselineFeeHeight()
getBaselineFeeHeight
in interface Appendix
public Fee getBaselineFee(Transaction transaction)
getBaselineFee
in interface Appendix
public int getNextFeeHeight()
getNextFeeHeight
in interface Appendix
public Fee getNextFee(Transaction transaction)
getNextFee
in interface Appendix
public final Fee getFee(Transaction transaction, int height)
public abstract void validate(Transaction transaction) throws NxtException.ValidationException
NxtException.ValidationException
public void validateId(Transaction transaction) throws NxtException.ValidationException
NxtException.ValidationException
public void validateAtFinish(Transaction transaction) throws NxtException.ValidationException
NxtException.ValidationException
public 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)