public abstract static class Attachment.AbstractAttachment extends Appendix.AbstractAppendix implements Attachment
Attachment.AbstractAttachment, Attachment.EmptyAttachment, Attachment.PropertyDeleteAttachment
Appendix.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, verifyVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTransactionType
getFee, getFullSize, getJSONObject, getSize, getVersion, hasAppendix, isPhased, putBytes
protected 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 Appendix
public final java.lang.String getAppendixName()
getAppendixName
in class Appendix.AbstractAppendix
public final void validate(Transaction transaction) throws NxtException.ValidationException
validate
in class Appendix.AbstractAppendix
NxtException.ValidationException
public final void validateId(Transaction transaction) throws NxtException.ValidationException
validateId
in class Appendix.AbstractAppendix
NxtException.ValidationException
public final void apply(Transaction transaction, Account senderAccount, Account recipientAccount)
apply
in class Appendix.AbstractAppendix
public final Fee getBaselineFee(Transaction transaction)
getBaselineFee
in interface Appendix
getBaselineFee
in class Appendix.AbstractAppendix
public final Fee getNextFee(Transaction transaction)
getNextFee
in interface Appendix
getNextFee
in class Appendix.AbstractAppendix
public final int getBaselineFeeHeight()
getBaselineFeeHeight
in interface Appendix
getBaselineFeeHeight
in class Appendix.AbstractAppendix
public final int getNextFeeHeight()
getNextFeeHeight
in interface Appendix
getNextFeeHeight
in class Appendix.AbstractAppendix
public final boolean isPhasable()
isPhasable
in class Appendix.AbstractAppendix
public final int getFinishValidationHeight(Transaction transaction)