Class NamespaceRegistrationTransactionV1
- All Implemented Interfaces:
-
Field Summary
FieldsFields inherited from class org.symbol.sdk.nem.models.Transaction
deadline, entityBodyReserved_1, fee, network, signature, signatureSize, signerPublicKey, signerPublicKeySize, timestamp, type, version -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new NamespaceRegistrationTransactionV1. -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.Reads a named field.byte[]getName()Gets the name field.byte[]Gets the parentName field.Gets the rentalFee field.Gets the rentalFeeSink field.protected voidserializeInto(Writer buffer) Writes this object's fields into the supplied buffer.voidSets a named field.voidsetName(byte[] value) Sets the name field.voidsetParentName(byte[] value) Sets the parentName field.voidsetRentalFee(Amount value) Sets the rentalFee field.voidsetRentalFeeSink(Address value) Sets the rentalFeeSink field.intsize()Calculates the size of the object.toJson()Converts this object to a JSON-serializable representation.Returns the non-verifiable form of this transaction.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.nem.models.Transaction
getDeadline, getFee, getNetwork, getSignature, getSignerPublicKey, getTimestamp, getType, getVersion, setDeadline, setFee, setNetwork, setSignature, setSignerPublicKey, setTimestamp, setType, setVersionMethods inherited from class org.symbol.sdk.CatbufferType
asByteArray, asBytes, asInt, asList, asLong, serialize, sort, toJsonString
-
Field Details
-
TRANSACTION_VERSION
public static final int TRANSACTION_VERSION- See Also:
-
TRANSACTION_TYPE
-
TYPE_HINTS
-
-
Constructor Details
-
NamespaceRegistrationTransactionV1
public NamespaceRegistrationTransactionV1()Creates a new NamespaceRegistrationTransactionV1.
-
-
Method Details
-
typeHints
- NamespaceRegistrationTransactionV1.typeHints
Returns the type-hint map driving the rule-based descriptor pipeline.
- Overrides:
typeHintsin classTransaction- Returns:
Field-name → rule-key map.
-
setField
- NamespaceRegistrationTransactionV1.setField
Sets a named field. Used by the rule-based descriptor pipeline.
- Overrides:
setFieldin classTransaction- Parameters:
name- Field name (descriptor key).value- Value to assign.
-
getField
- NamespaceRegistrationTransactionV1.getField
Reads a named field. Used by the facade-level entity inspection helpers.
- Overrides:
getFieldin classTransaction- Parameters:
name- Field name.- Returns:
Field value.
-
toNonVerifiable
- NamespaceRegistrationTransactionV1.toNonVerifiable
Returns the non-verifiable form of this transaction.
- Overrides:
toNonVerifiablein classTransaction- Returns:
Non-verifiable transaction.
-
getRentalFeeSink
- NamespaceRegistrationTransactionV1.getRentalFeeSink
Gets the rentalFeeSink field.
- Returns:
The rentalFeeSink field.
-
setRentalFeeSink
- NamespaceRegistrationTransactionV1.setRentalFeeSink
Sets the rentalFeeSink field.
- Parameters:
value- New rentalFeeSink value.
-
getRentalFee
- NamespaceRegistrationTransactionV1.getRentalFee
Gets the rentalFee field.
- Returns:
The rentalFee field.
-
setRentalFee
- NamespaceRegistrationTransactionV1.setRentalFee
Sets the rentalFee field.
- Parameters:
value- New rentalFee value.
-
getName
public byte[] getName()- NamespaceRegistrationTransactionV1.getName
Gets the name field.
- Returns:
The name field.
-
setName
public void setName(byte[] value) - NamespaceRegistrationTransactionV1.setName
Sets the name field.
- Parameters:
value- New name value.
-
getParentName
public byte[] getParentName()- NamespaceRegistrationTransactionV1.getParentName
Gets the parentName field.
- Returns:
The parentName field.
-
setParentName
public void setParentName(byte[] value) - NamespaceRegistrationTransactionV1.setParentName
Sets the parentName field.
- Parameters:
value- New parentName value.
-
size
public int size()- NamespaceRegistrationTransactionV1.size
Calculates the size of the object.
- Specified by:
sizein interfaceSerializer- Overrides:
sizein classTransaction- Returns:
Size of this object in bytes.
-
deserialize
- NamespaceRegistrationTransactionV1.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
- NamespaceRegistrationTransactionV1.serializeInto
Writes this object's fields into the supplied buffer.
- Overrides:
serializeIntoin classTransaction- Parameters:
buffer- Output writer.
-
toString
- NamespaceRegistrationTransactionV1.toString
Returns a string representation of this object.
- Overrides:
toStringin classTransaction- Returns:
String representation of this object.
-
toJson
- NamespaceRegistrationTransactionV1.toJson
Converts this object to a JSON-serializable representation.
- Overrides:
toJsonin classTransaction- Returns:
JSON-serializable representation of this object.
-