Package nxt.blockchain
Class Attachment.AbstractAttachment
java.lang.Object
nxt.blockchain.Appendix.AbstractAppendix
nxt.blockchain.Attachment.AbstractAttachment
- All Implemented Interfaces:
Appendix,Attachment
- Direct Known Subclasses:
AbstractShufflingAttachment,AccountInfoAttachment,AccountPropertyAttachment,AddPermissionAttachment,AliasAssignmentAttachment,AliasBuyAttachment,AliasDeleteAttachment,AliasSellAttachment,AssetDeleteAttachment,AssetIncreaseAttachment,AssetIssuanceAttachment,AssetPropertyAttachment,AssetTransferAttachment,Attachment.EmptyAttachment,Attachment.PropertyDeleteAttachment,ChildBlockAttachment,ContractReferenceAttachment,ContractReferenceDeleteAttachment,CurrencyDeletionAttachment,CurrencyIssuanceAttachment,CurrencyMintingAttachment,CurrencyTransferAttachment,DelistingAttachment,DeliveryAttachment,DividendPaymentAttachment,EffectiveBalanceLeasingAttachment,ExchangeAttachment,FeedbackAttachment,ListingAttachment,OrderCancelAttachment,OrderCancellationAttachment,OrderIssueAttachment,OrderPlacementAttachment,PhasingVoteCastingAttachment,PollCreationAttachment,PriceChangeAttachment,PublishExchangeOfferAttachment,PurchaseAttachment,QuantityChangeAttachment,RefundAttachment,RemovePermissionAttachment,ReserveClaimAttachment,ReserveIncreaseAttachment,SetAssetTradeRoyaltiesAttachment,SetPhasingAssetControlAttachment,SetPhasingOnlyAttachment,ShufflingCreationAttachment,ShufflingRegistrationAttachment,TaggedDataAttachment,VoteCastingAttachment
- Enclosing interface:
- Attachment
public abstract static class Attachment.AbstractAttachment
extends Appendix.AbstractAppendix
implements Attachment
-
Nested Class Summary
Nested classes/interfaces inherited from interface nxt.blockchain.Appendix
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.PrunableNested classes/interfaces inherited from interface nxt.blockchain.Attachment
Attachment.AbstractAttachment, Attachment.EmptyAttachment, Attachment.PropertyDeleteAttachment -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedAbstractAttachment(int version) protectedAbstractAttachment(ByteBuffer buffer) protectedAbstractAttachment(org.json.simple.JSONObject attachmentData) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidapply(Transaction transaction, Account senderAccount, Account recipientAccount) final Stringfinal intfinal FeegetBaselineFee(Transaction transaction) final intfinal intgetFinishValidationHeight(Transaction transaction) final FeegetNextFee(Transaction transaction) final intfinal booleanfinal booleanfinal voidvalidate(Transaction transaction) final voidvalidateId(Transaction transaction) Methods inherited from class nxt.blockchain.Appendix.AbstractAppendix
getFee, getFullSize, getJSONObject, getMySize, getSize, getVersion, isPhased, loadPrunable, loadPrunable, putBytes, putMyBytes, putMyJSON, validateAtFinish, verifyVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nxt.blockchain.Appendix
getFee, getFullSize, getJSONObject, getSize, getVersion, isPhased, putBytesMethods inherited from interface nxt.blockchain.Attachment
getTransactionType
-
Constructor Details
-
AbstractAttachment
-
AbstractAttachment
protected AbstractAttachment(org.json.simple.JSONObject attachmentData) -
AbstractAttachment
protected AbstractAttachment(int version) -
AbstractAttachment
protected AbstractAttachment()
-
-
Method Details
-
getAppendixType
public final int getAppendixType()- Specified by:
getAppendixTypein interfaceAppendix
-
getAppendixName
- Specified by:
getAppendixNamein classAppendix.AbstractAppendix
-
validate
- Specified by:
validatein classAppendix.AbstractAppendix- Throws:
NxtException.ValidationException
-
validateId
- Overrides:
validateIdin classAppendix.AbstractAppendix- Throws:
NxtException.ValidationException
-
apply
- Specified by:
applyin classAppendix.AbstractAppendix
-
getBaselineFee
- Specified by:
getBaselineFeein interfaceAppendix- Overrides:
getBaselineFeein classAppendix.AbstractAppendix
-
getNextFee
- Specified by:
getNextFeein interfaceAppendix- Overrides:
getNextFeein classAppendix.AbstractAppendix
-
getBaselineFeeHeight
public final int getBaselineFeeHeight()- Specified by:
getBaselineFeeHeightin interfaceAppendix- Overrides:
getBaselineFeeHeightin classAppendix.AbstractAppendix
-
getNextFeeHeight
public final int getNextFeeHeight()- Specified by:
getNextFeeHeightin interfaceAppendix- Overrides:
getNextFeeHeightin classAppendix.AbstractAppendix
-
isPhasable
public final boolean isPhasable()- Specified by:
isPhasablein classAppendix.AbstractAppendix
-
isAllowed
-
getFinishValidationHeight
-