Package org.symbol.sdk.symbol.models
Class EmbeddedTransaction
java.lang.Object
org.symbol.sdk.CatbufferType
org.symbol.sdk.symbol.models.EmbeddedTransaction
- All Implemented Interfaces:
Serializer,BaseTransaction
- Direct Known Subclasses:
EmbeddedAccountAddressRestrictionTransactionV1,EmbeddedAccountKeyLinkTransactionV1,EmbeddedAccountMetadataTransactionV1,EmbeddedAccountMosaicRestrictionTransactionV1,EmbeddedAccountOperationRestrictionTransactionV1,EmbeddedAddressAliasTransactionV1,EmbeddedHashLockTransactionV1,EmbeddedMosaicAddressRestrictionTransactionV1,EmbeddedMosaicAliasTransactionV1,EmbeddedMosaicDefinitionTransactionV1,EmbeddedMosaicGlobalRestrictionTransactionV1,EmbeddedMosaicMetadataTransactionV1,EmbeddedMosaicSupplyChangeTransactionV1,EmbeddedMosaicSupplyRevocationTransactionV1,EmbeddedMultisigAccountModificationTransactionV1,EmbeddedNamespaceMetadataTransactionV1,EmbeddedNamespaceRegistrationTransactionV1,EmbeddedNodeKeyLinkTransactionV1,EmbeddedSecretLockTransactionV1,EmbeddedSecretProofTransactionV1,EmbeddedTransferTransactionV1,EmbeddedVotingKeyLinkTransactionV1,EmbeddedVrfKeyLinkTransactionV1
public sealed class EmbeddedTransaction
extends CatbufferType
implements BaseTransaction
permits EmbeddedAccountAddressRestrictionTransactionV1, EmbeddedAccountKeyLinkTransactionV1, EmbeddedAccountMetadataTransactionV1, EmbeddedAccountMosaicRestrictionTransactionV1, EmbeddedAccountOperationRestrictionTransactionV1, EmbeddedAddressAliasTransactionV1, EmbeddedHashLockTransactionV1, EmbeddedMosaicAddressRestrictionTransactionV1, EmbeddedMosaicAliasTransactionV1, EmbeddedMosaicDefinitionTransactionV1, EmbeddedMosaicGlobalRestrictionTransactionV1, EmbeddedMosaicMetadataTransactionV1, EmbeddedMosaicSupplyChangeTransactionV1, EmbeddedMosaicSupplyRevocationTransactionV1, EmbeddedMultisigAccountModificationTransactionV1, EmbeddedNamespaceMetadataTransactionV1, EmbeddedNamespaceRegistrationTransactionV1, EmbeddedNodeKeyLinkTransactionV1, EmbeddedSecretLockTransactionV1, EmbeddedSecretProofTransactionV1, EmbeddedTransferTransactionV1, EmbeddedVotingKeyLinkTransactionV1, EmbeddedVrfKeyLinkTransactionV1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final longprotected final longprotected NetworkTypeprotected PublicKeyprotected TransactionTypeprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReads a named field.Gets the network field.Gets the signerPublicKey field.getType()Gets the type field.intGets the version field.protected voidserializeInto(Writer buffer) Writes this object's fields into the supplied buffer.voidSets a named field.voidsetNetwork(NetworkType value) Sets the network field.voidsetSignerPublicKey(PublicKey value) Sets the signerPublicKey field.voidsetType(TransactionType value) Sets the type field.voidsetVersion(int value) Sets the version field.intsize()Calculates the size of the object.toJson()Converts this object to a JSON-serializable representation.toString()Returns a string representation of this object.Returns the type-hint map driving the rule-based descriptor pipeline.Methods inherited from class org.symbol.sdk.CatbufferType
asByteArray, asBytes, asInt, asList, asLong, serialize, sort, toJsonStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.symbol.sdk.symbol.BaseTransaction
sortMethods inherited from interface org.symbol.sdk.Serializer
serialize
-
Field Details
-
signerPublicKey
-
version
protected int version -
network
-
type
-
embeddedTransactionHeaderReserved_1
protected final long embeddedTransactionHeaderReserved_1- See Also:
-
entityBodyReserved_1
protected final long entityBodyReserved_1- See Also:
-
TYPE_HINTS
-
-
Constructor Details
-
EmbeddedTransaction
public EmbeddedTransaction()Creates a new EmbeddedTransaction.
-
-
Method Details
-
typeHints
- EmbeddedTransaction.typeHints
- Returns the type-hint map driving the rule-based descriptor pipeline.
- Overrides:
typeHintsin classCatbufferType- Returns:
- Field-name → rule-key map.
-
setField
- EmbeddedTransaction.setField
- Sets a named field. Used by the rule-based descriptor pipeline.
- Specified by:
setFieldin interfaceBaseTransaction- Overrides:
setFieldin classCatbufferType- Parameters:
name- Field name (descriptor key).value- Value to assign.
-
getField
- EmbeddedTransaction.getField
- Reads a named field. Used by the facade-level entity inspection helpers.
- Specified by:
getFieldin interfaceBaseTransaction- Overrides:
getFieldin classCatbufferType- Parameters:
name- Field name.- Returns:
- Field value.
-
getSignerPublicKey
- EmbeddedTransaction.getSignerPublicKey
- Gets the signerPublicKey field.
- Specified by:
getSignerPublicKeyin interfaceBaseTransaction- Returns:
- The signerPublicKey field.
-
setSignerPublicKey
- EmbeddedTransaction.setSignerPublicKey
- Sets the signerPublicKey field.
- Parameters:
value- New signerPublicKey value.
-
getVersion
public int getVersion()- EmbeddedTransaction.getVersion
- Gets the version field.
- Specified by:
getVersionin interfaceBaseTransaction- Returns:
- The version field.
-
setVersion
public void setVersion(int value) - EmbeddedTransaction.setVersion
- Sets the version field.
- Parameters:
value- New version value.
-
getNetwork
- EmbeddedTransaction.getNetwork
- Gets the network field.
- Specified by:
getNetworkin interfaceBaseTransaction- Returns:
- The network field.
-
setNetwork
- EmbeddedTransaction.setNetwork
- Sets the network field.
- Parameters:
value- New network value.
-
getType
- EmbeddedTransaction.getType
- Gets the type field.
- Specified by:
getTypein interfaceBaseTransaction- Returns:
- The type field.
-
setType
- EmbeddedTransaction.setType
- Sets the type field.
- Parameters:
value- New type value.
-
size
public int size()- EmbeddedTransaction.size
- Calculates the size of the object.
- Specified by:
sizein interfaceSerializer- Returns:
- Size of this object in bytes.
-
serializeInto
- EmbeddedTransaction.serializeInto
- Writes this object's fields into the supplied buffer.
- Specified by:
serializeIntoin classCatbufferType- Parameters:
buffer- Output writer.
-
toString
- EmbeddedTransaction.toString
- Returns a string representation of this object.
-
toJson
- EmbeddedTransaction.toJson
- Converts this object to a JSON-serializable representation.
- Specified by:
toJsonin classCatbufferType- Returns:
- JSON-serializable representation of this object.
-