Class EmbeddedMosaicDefinitionTransactionV1
- All Implemented Interfaces:
-
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 EmbeddedMosaicDefinitionTransactionV1. -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.intGets the divisibility field.Gets the duration field.Reads a named field.getFlags()Gets the flags field.getId()Gets the id field.getNonce()Gets the nonce field.protected voidserializeInto(Writer buffer) Writes this object's fields into the supplied buffer.voidsetDivisibility(int value) Sets the divisibility field.voidsetDuration(BlockDuration value) Sets the duration field.voidSets a named field.voidsetFlags(MosaicFlags value) Sets the flags field.voidSets the id field.voidsetNonce(MosaicNonce value) Sets the nonce 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.symbol.models.EmbeddedTransaction
getNetwork, getSignerPublicKey, getType, getVersion, setNetwork, setSignerPublicKey, setType, setVersionMethods 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
-
TRANSACTION_VERSION
public static final int TRANSACTION_VERSION- See Also:
-
TRANSACTION_TYPE
-
TYPE_HINTS
-
-
Constructor Details
-
EmbeddedMosaicDefinitionTransactionV1
public EmbeddedMosaicDefinitionTransactionV1()Creates a new EmbeddedMosaicDefinitionTransactionV1.
-
-
Method Details
-
typeHints
- EmbeddedMosaicDefinitionTransactionV1.typeHints
Returns the type-hint map driving the rule-based descriptor pipeline.
- Overrides:
typeHintsin classEmbeddedTransaction- Returns:
Field-name → rule-key map.
-
setField
- EmbeddedMosaicDefinitionTransactionV1.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
- EmbeddedMosaicDefinitionTransactionV1.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.
-
getId
- EmbeddedMosaicDefinitionTransactionV1.getId
Gets the id field.
- Returns:
The id field.
-
setId
- EmbeddedMosaicDefinitionTransactionV1.setId
Sets the id field.
- Parameters:
value- New id value.
-
getDuration
- EmbeddedMosaicDefinitionTransactionV1.getDuration
Gets the duration field.
- Returns:
The duration field.
-
setDuration
- EmbeddedMosaicDefinitionTransactionV1.setDuration
Sets the duration field.
- Parameters:
value- New duration value.
-
getNonce
- EmbeddedMosaicDefinitionTransactionV1.getNonce
Gets the nonce field.
- Returns:
The nonce field.
-
setNonce
- EmbeddedMosaicDefinitionTransactionV1.setNonce
Sets the nonce field.
- Parameters:
value- New nonce value.
-
getFlags
- EmbeddedMosaicDefinitionTransactionV1.getFlags
Gets the flags field.
- Returns:
The flags field.
-
setFlags
- EmbeddedMosaicDefinitionTransactionV1.setFlags
Sets the flags field.
- Parameters:
value- New flags value.
-
getDivisibility
public int getDivisibility()- EmbeddedMosaicDefinitionTransactionV1.getDivisibility
Gets the divisibility field.
- Returns:
The divisibility field.
-
setDivisibility
public void setDivisibility(int value) - EmbeddedMosaicDefinitionTransactionV1.setDivisibility
Sets the divisibility field.
- Parameters:
value- New divisibility value.
-
size
public int size()- EmbeddedMosaicDefinitionTransactionV1.size
Calculates the size of the object.
- Specified by:
sizein interfaceSerializer- Overrides:
sizein classEmbeddedTransaction- Returns:
Size of this object in bytes.
-
deserialize
- EmbeddedMosaicDefinitionTransactionV1.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
- EmbeddedMosaicDefinitionTransactionV1.serializeInto
Writes this object's fields into the supplied buffer.
- Overrides:
serializeIntoin classEmbeddedTransaction- Parameters:
buffer- Output writer.
-
toString
- EmbeddedMosaicDefinitionTransactionV1.toString
Returns a string representation of this object.
- Overrides:
toStringin classEmbeddedTransaction- Returns:
String representation of this object.
-
toJson
- EmbeddedMosaicDefinitionTransactionV1.toJson
Converts this object to a JSON-serializable representation.
- Overrides:
toJsonin classEmbeddedTransaction- Returns:
JSON-serializable representation of this object.
-