Package nxt.blockchain
Class Appendix.AbstractAppendix
java.lang.Object
nxt.blockchain.Appendix.AbstractAppendix
- All Implemented Interfaces:
Appendix
- Direct Known Subclasses:
AtomicChildAppendix,AtomicParentAppendix,Attachment.AbstractAttachment,EncryptedMessageAppendix,EncryptToSelfMessageAppendix,MessageAppendix,PhasingAppendix,PrunableEncryptedMessageAppendix,PrunablePlainMessageAppendix,PublicKeyAnnouncementAppendix
- Enclosing interface:
- Appendix
-
Nested Class Summary
Nested classes/interfaces inherited from interface nxt.blockchain.Appendix
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.Prunable -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedAbstractAppendix(int version) protectedAbstractAppendix(ByteBuffer buffer) protectedAbstractAppendix(org.json.simple.JSONObject attachmentData) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidapply(Transaction transaction, Account senderAccount, Account recipientAccount) abstract StringgetBaselineFee(Transaction transaction) intfinal FeegetFee(Transaction transaction, int height) final intfinal org.json.simple.JSONObjectprotected abstract intgetNextFee(Transaction transaction) intfinal intgetSize()final byteabstract booleanfinal booleanisPhased(Transaction transaction) final voidloadPrunable(Transaction transaction) voidloadPrunable(Transaction transaction, boolean includeExpiredPrunable) final voidputBytes(ByteBuffer buffer) protected abstract voidputMyBytes(ByteBuffer buffer) protected abstract voidputMyJSON(org.json.simple.JSONObject json) abstract voidvalidate(Transaction transaction) voidvalidateAtFinish(Transaction transaction) voidvalidateId(Transaction transaction) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nxt.blockchain.Appendix
getAppendixType, isAllowed
-
Constructor Details
-
AbstractAppendix
protected AbstractAppendix(org.json.simple.JSONObject attachmentData) -
AbstractAppendix
-
AbstractAppendix
protected AbstractAppendix(int version) -
AbstractAppendix
protected AbstractAppendix()
-
-
Method Details
-
getAppendixName
-
getSize
public final int getSize() -
getFullSize
public final int getFullSize()- Specified by:
getFullSizein interfaceAppendix
-
getMySize
protected abstract int getMySize() -
putBytes
-
putMyBytes
-
getJSONObject
public final org.json.simple.JSONObject getJSONObject()- Specified by:
getJSONObjectin interfaceAppendix
-
putMyJSON
protected abstract void putMyJSON(org.json.simple.JSONObject json) -
getVersion
public final byte getVersion()- Specified by:
getVersionin interfaceAppendix
-
verifyVersion
public boolean verifyVersion() -
getBaselineFeeHeight
public int getBaselineFeeHeight()- Specified by:
getBaselineFeeHeightin interfaceAppendix
-
getBaselineFee
- Specified by:
getBaselineFeein interfaceAppendix
-
getNextFeeHeight
public int getNextFeeHeight()- Specified by:
getNextFeeHeightin interfaceAppendix
-
getNextFee
- Specified by:
getNextFeein interfaceAppendix
-
getFee
-
validate
- Throws:
NxtException.ValidationException
-
validateId
- Throws:
NxtException.ValidationException
-
validateAtFinish
- Throws:
NxtException.ValidationException
-
apply
public abstract void apply(Transaction transaction, Account senderAccount, Account recipientAccount) -
loadPrunable
-
loadPrunable
-
isPhasable
public abstract boolean isPhasable() -
isPhased
-