public abstract static class Attachment.AbstractAttachment extends Appendix.AbstractAppendix implements Attachment
Attachment.AbstractAttachment, Attachment.EmptyAttachment, Attachment.PropertyDeleteAttachmentAppendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.Prunable| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAttachment() |
protected |
AbstractAttachment(java.nio.ByteBuffer buffer) |
protected |
AbstractAttachment(int version) |
protected |
AbstractAttachment(org.json.simple.JSONObject attachmentData) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Transaction transaction,
Account senderAccount,
Account recipientAccount) |
java.lang.String |
getAppendixName() |
int |
getAppendixType() |
Fee |
getBaselineFee(Transaction transaction) |
int |
getBaselineFeeHeight() |
int |
getFinishValidationHeight(Transaction transaction) |
Fee |
getNextFee(Transaction transaction) |
int |
getNextFeeHeight() |
boolean |
isAllowed(Chain chain) |
boolean |
isPhasable() |
void |
validate(Transaction transaction) |
void |
validateId(Transaction transaction) |
getFee, getFullSize, getJSONObject, getMySize, getSize, getVersion, isPhased, loadPrunable, loadPrunable, putBytes, putMyBytes, putMyJSON, validateAtFinish, verifyVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTransactionTypegetFee, getFullSize, getJSONObject, getSize, getVersion, hasAppendix, isPhased, putBytesprotected AbstractAttachment(java.nio.ByteBuffer buffer)
protected AbstractAttachment(org.json.simple.JSONObject attachmentData)
protected AbstractAttachment(int version)
protected AbstractAttachment()
public final int getAppendixType()
getAppendixType in interface Appendixpublic final java.lang.String getAppendixName()
getAppendixName in class Appendix.AbstractAppendixpublic final void validate(Transaction transaction) throws NxtException.ValidationException
validate in class Appendix.AbstractAppendixNxtException.ValidationExceptionpublic final void validateId(Transaction transaction) throws NxtException.ValidationException
validateId in class Appendix.AbstractAppendixNxtException.ValidationExceptionpublic final void apply(Transaction transaction, Account senderAccount, Account recipientAccount)
apply in class Appendix.AbstractAppendixpublic final Fee getBaselineFee(Transaction transaction)
getBaselineFee in interface AppendixgetBaselineFee in class Appendix.AbstractAppendixpublic final Fee getNextFee(Transaction transaction)
getNextFee in interface AppendixgetNextFee in class Appendix.AbstractAppendixpublic final int getBaselineFeeHeight()
getBaselineFeeHeight in interface AppendixgetBaselineFeeHeight in class Appendix.AbstractAppendixpublic final int getNextFeeHeight()
getNextFeeHeight in interface AppendixgetNextFeeHeight in class Appendix.AbstractAppendixpublic final boolean isPhasable()
isPhasable in class Appendix.AbstractAppendixpublic final int getFinishValidationHeight(Transaction transaction)