Class EmbeddedNamespaceRegistrationTransactionV1
- 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 EmbeddedNamespaceRegistrationTransactionV1. -
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.getId()Gets the id field.byte[]getName()Gets the name field.Gets the parentId field.Gets the registrationType 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.voidsetId(NamespaceId value) Sets the id field.voidsetName(byte[] value) Sets the name field.voidsetParentId(NamespaceId value) Sets the parentId field.voidSets the registrationType 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
-
EmbeddedNamespaceRegistrationTransactionV1
public EmbeddedNamespaceRegistrationTransactionV1()Creates a new EmbeddedNamespaceRegistrationTransactionV1.
-
-
Method Details
-
typeHints
- EmbeddedNamespaceRegistrationTransactionV1.typeHints
Returns the type-hint map driving the rule-based descriptor pipeline.
- Overrides:
typeHintsin classEmbeddedTransaction- Returns:
Field-name → rule-key map.
-
setField
- EmbeddedNamespaceRegistrationTransactionV1.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
- EmbeddedNamespaceRegistrationTransactionV1.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.
-
getDuration
- EmbeddedNamespaceRegistrationTransactionV1.getDuration
Gets the duration field.
- Returns:
The duration field.
-
setDuration
- EmbeddedNamespaceRegistrationTransactionV1.setDuration
Sets the duration field.
- Parameters:
value- New duration value.
-
getParentId
- EmbeddedNamespaceRegistrationTransactionV1.getParentId
Gets the parentId field.
- Returns:
The parentId field.
-
setParentId
- EmbeddedNamespaceRegistrationTransactionV1.setParentId
Sets the parentId field.
- Parameters:
value- New parentId value.
-
getId
- EmbeddedNamespaceRegistrationTransactionV1.getId
Gets the id field.
- Returns:
The id field.
-
setId
- EmbeddedNamespaceRegistrationTransactionV1.setId
Sets the id field.
- Parameters:
value- New id value.
-
getRegistrationType
- EmbeddedNamespaceRegistrationTransactionV1.getRegistrationType
Gets the registrationType field.
- Returns:
The registrationType field.
-
setRegistrationType
- EmbeddedNamespaceRegistrationTransactionV1.setRegistrationType
Sets the registrationType field.
- Parameters:
value- New registrationType value.
-
getName
public byte[] getName()- EmbeddedNamespaceRegistrationTransactionV1.getName
Gets the name field.
- Returns:
The name field.
-
setName
public void setName(byte[] value) - EmbeddedNamespaceRegistrationTransactionV1.setName
Sets the name field.
- Parameters:
value- New name value.
-
size
public int size()- EmbeddedNamespaceRegistrationTransactionV1.size
Calculates the size of the object.
- Specified by:
sizein interfaceSerializer- Overrides:
sizein classEmbeddedTransaction- Returns:
Size of this object in bytes.
-
deserialize
- EmbeddedNamespaceRegistrationTransactionV1.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
- EmbeddedNamespaceRegistrationTransactionV1.serializeInto
Writes this object's fields into the supplied buffer.
- Overrides:
serializeIntoin classEmbeddedTransaction- Parameters:
buffer- Output writer.
-
toString
- EmbeddedNamespaceRegistrationTransactionV1.toString
Returns a string representation of this object.
- Overrides:
toStringin classEmbeddedTransaction- Returns:
String representation of this object.
-
toJson
- EmbeddedNamespaceRegistrationTransactionV1.toJson
Converts this object to a JSON-serializable representation.
- Overrides:
toJsonin classEmbeddedTransaction- Returns:
JSON-serializable representation of this object.
-