Package org.symbol.sdk.symbol.models
Class EmbeddedSecretLockTransactionV1
java.lang.Object
org.symbol.sdk.CatbufferType
org.symbol.sdk.symbol.models.EmbeddedTransaction
org.symbol.sdk.symbol.models.EmbeddedSecretLockTransactionV1
- All Implemented Interfaces:
Serializer,BaseTransaction
-
Field Summary
FieldsFields inherited from class org.symbol.sdk.symbol.models.EmbeddedTransaction
embeddedTransactionHeaderReserved_1, entityBodyReserved_1, network, signerPublicKey, type, version -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new EmbeddedSecretLockTransactionV1. -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.Gets the duration field.Reads a named field.Gets the hashAlgorithm field.Gets the mosaic field.Gets the recipientAddress field.Gets the secret field.protected voidserializeInto(Writer buffer) Writes this object's fields into the supplied buffer.voidsetDuration(BlockDuration value) Sets the duration field.voidSets a named field.voidSets the hashAlgorithm field.voidsetMosaic(UnresolvedMosaic value) Sets the mosaic field.voidSets the recipientAddress field.voidSets the secret field.intsize()Calculates the size of the object.voidsort()Sorts the collections of this object so that it can be serialized canonically.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.symbol.models.EmbeddedTransaction
getNetwork, getSignerPublicKey, getType, getVersion, setNetwork, setSignerPublicKey, setType, setVersionMethods inherited from class org.symbol.sdk.CatbufferType
asByteArray, asBytes, asInt, asList, asLong, serialize, toJsonStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.symbol.sdk.Serializer
serialize
-
Field Details
-
TRANSACTION_VERSION
public static final int TRANSACTION_VERSION- See Also:
-
TRANSACTION_TYPE
-
TYPE_HINTS
-
-
Constructor Details
-
EmbeddedSecretLockTransactionV1
public EmbeddedSecretLockTransactionV1()Creates a new EmbeddedSecretLockTransactionV1.
-
-
Method Details
-
typeHints
- EmbeddedSecretLockTransactionV1.typeHints
- Returns the type-hint map driving the rule-based descriptor pipeline.
- Overrides:
typeHintsin classEmbeddedTransaction- Returns:
- Field-name → rule-key map.
-
setField
- EmbeddedSecretLockTransactionV1.setField
- Sets a named field. Used by the rule-based descriptor pipeline.
- Specified by:
setFieldin interfaceBaseTransaction- Overrides:
setFieldin classEmbeddedTransaction- Parameters:
name- Field name (descriptor key).value- Value to assign.
-
getField
- EmbeddedSecretLockTransactionV1.getField
- Reads a named field. Used by the facade-level entity inspection helpers.
- Specified by:
getFieldin interfaceBaseTransaction- Overrides:
getFieldin classEmbeddedTransaction- Parameters:
name- Field name.- Returns:
- Field value.
-
sort
public void sort()- EmbeddedSecretLockTransactionV1.sort
- Sorts the collections of this object so that it can be serialized canonically.
- Specified by:
sortin interfaceBaseTransaction- Overrides:
sortin classCatbufferType
-
getRecipientAddress
- EmbeddedSecretLockTransactionV1.getRecipientAddress
- Gets the recipientAddress field.
- Returns:
- The recipientAddress field.
-
setRecipientAddress
- EmbeddedSecretLockTransactionV1.setRecipientAddress
- Sets the recipientAddress field.
- Parameters:
value- New recipientAddress value.
-
getSecret
- EmbeddedSecretLockTransactionV1.getSecret
- Gets the secret field.
- Returns:
- The secret field.
-
setSecret
- EmbeddedSecretLockTransactionV1.setSecret
- Sets the secret field.
- Parameters:
value- New secret value.
-
getMosaic
- EmbeddedSecretLockTransactionV1.getMosaic
- Gets the mosaic field.
- Returns:
- The mosaic field.
-
setMosaic
- EmbeddedSecretLockTransactionV1.setMosaic
- Sets the mosaic field.
- Parameters:
value- New mosaic value.
-
getDuration
- EmbeddedSecretLockTransactionV1.getDuration
- Gets the duration field.
- Returns:
- The duration field.
-
setDuration
- EmbeddedSecretLockTransactionV1.setDuration
- Sets the duration field.
- Parameters:
value- New duration value.
-
getHashAlgorithm
- EmbeddedSecretLockTransactionV1.getHashAlgorithm
- Gets the hashAlgorithm field.
- Returns:
- The hashAlgorithm field.
-
setHashAlgorithm
- EmbeddedSecretLockTransactionV1.setHashAlgorithm
- Sets the hashAlgorithm field.
- Parameters:
value- New hashAlgorithm value.
-
size
public int size()- EmbeddedSecretLockTransactionV1.size
- Calculates the size of the object.
- Specified by:
sizein interfaceSerializer- Overrides:
sizein classEmbeddedTransaction- Returns:
- Size of this object in bytes.
-
deserialize
- EmbeddedSecretLockTransactionV1.deserialize
- Deserializes an instance of this object from a byte payload.
- Parameters:
buffer- Output writer.- Returns:
- Deserialized object.
- Throws:
IndexOutOfBoundsException- if the buffer is truncated or a declared length overruns itIllegalArgumentException- if a field carries an invalid value (e.g. a reserved field or unknown discriminator)
-
serializeInto
- EmbeddedSecretLockTransactionV1.serializeInto
- Writes this object's fields into the supplied buffer.
- Overrides:
serializeIntoin classEmbeddedTransaction- Parameters:
buffer- Output writer.
-
toString
- EmbeddedSecretLockTransactionV1.toString
- Returns a string representation of this object.
- Overrides:
toStringin classEmbeddedTransaction- Returns:
- String representation of this object.
-
toJson
- EmbeddedSecretLockTransactionV1.toJson
- Converts this object to a JSON-serializable representation.
- Overrides:
toJsonin classEmbeddedTransaction- Returns:
- JSON-serializable representation of this object.
-