Package org.symbol.sdk.symbol.models
Class MosaicGlobalRestrictionTransactionV1
java.lang.Object
org.symbol.sdk.CatbufferType
org.symbol.sdk.symbol.models.Transaction
org.symbol.sdk.symbol.models.MosaicGlobalRestrictionTransactionV1
- All Implemented Interfaces:
Serializer,BaseTransaction
-
Field Summary
FieldsFields inherited from class org.symbol.sdk.symbol.models.Transaction
deadline, entityBodyReserved_1, fee, network, signature, signerPublicKey, type, verifiableEntityHeaderReserved_1, version -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new MosaicGlobalRestrictionTransactionV1. -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.Reads a named field.Gets the mosaicId field.Gets the newRestrictionType field.longGets the newRestrictionValue field.Gets the previousRestrictionType field.longGets the previousRestrictionValue field.Gets the referenceMosaicId field.longGets the restrictionKey field.protected voidserializeInto(Writer buffer) Writes this object's fields into the supplied buffer.voidSets a named field.voidsetMosaicId(UnresolvedMosaicId value) Sets the mosaicId field.voidSets the newRestrictionType field.voidsetNewRestrictionValue(long value) Sets the newRestrictionValue field.voidSets the previousRestrictionType field.voidsetPreviousRestrictionValue(long value) Sets the previousRestrictionValue field.voidSets the referenceMosaicId field.voidsetRestrictionKey(long value) Sets the restrictionKey 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.Transaction
getDeadline, getFee, getNetwork, getSignature, getSignerPublicKey, getType, getVersion, setDeadline, setFee, setNetwork, setSignature, 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
-
MosaicGlobalRestrictionTransactionV1
public MosaicGlobalRestrictionTransactionV1()Creates a new MosaicGlobalRestrictionTransactionV1.
-
-
Method Details
-
typeHints
- MosaicGlobalRestrictionTransactionV1.typeHints
- Returns the type-hint map driving the rule-based descriptor pipeline.
- Overrides:
typeHintsin classTransaction- Returns:
- Field-name → rule-key map.
-
setField
- MosaicGlobalRestrictionTransactionV1.setField
- Sets a named field. Used by the rule-based descriptor pipeline.
- Specified by:
setFieldin interfaceBaseTransaction- Overrides:
setFieldin classTransaction- Parameters:
name- Field name (descriptor key).value- Value to assign.
-
getField
- MosaicGlobalRestrictionTransactionV1.getField
- Reads a named field. Used by the facade-level entity inspection helpers.
- Specified by:
getFieldin interfaceBaseTransaction- Overrides:
getFieldin classTransaction- Parameters:
name- Field name.- Returns:
- Field value.
-
getMosaicId
- MosaicGlobalRestrictionTransactionV1.getMosaicId
- Gets the mosaicId field.
- Returns:
- The mosaicId field.
-
setMosaicId
- MosaicGlobalRestrictionTransactionV1.setMosaicId
- Sets the mosaicId field.
- Parameters:
value- New mosaicId value.
-
getReferenceMosaicId
- MosaicGlobalRestrictionTransactionV1.getReferenceMosaicId
- Gets the referenceMosaicId field.
- Returns:
- The referenceMosaicId field.
-
setReferenceMosaicId
- MosaicGlobalRestrictionTransactionV1.setReferenceMosaicId
- Sets the referenceMosaicId field.
- Parameters:
value- New referenceMosaicId value.
-
getRestrictionKey
public long getRestrictionKey()- MosaicGlobalRestrictionTransactionV1.getRestrictionKey
- Gets the restrictionKey field.
- Returns:
- The restrictionKey field.
-
setRestrictionKey
public void setRestrictionKey(long value) - MosaicGlobalRestrictionTransactionV1.setRestrictionKey
- Sets the restrictionKey field.
- Parameters:
value- New restrictionKey value.
-
getPreviousRestrictionValue
public long getPreviousRestrictionValue()- MosaicGlobalRestrictionTransactionV1.getPreviousRestrictionValue
- Gets the previousRestrictionValue field.
- Returns:
- The previousRestrictionValue field.
-
setPreviousRestrictionValue
public void setPreviousRestrictionValue(long value) - MosaicGlobalRestrictionTransactionV1.setPreviousRestrictionValue
- Sets the previousRestrictionValue field.
- Parameters:
value- New previousRestrictionValue value.
-
getNewRestrictionValue
public long getNewRestrictionValue()- MosaicGlobalRestrictionTransactionV1.getNewRestrictionValue
- Gets the newRestrictionValue field.
- Returns:
- The newRestrictionValue field.
-
setNewRestrictionValue
public void setNewRestrictionValue(long value) - MosaicGlobalRestrictionTransactionV1.setNewRestrictionValue
- Sets the newRestrictionValue field.
- Parameters:
value- New newRestrictionValue value.
-
getPreviousRestrictionType
- MosaicGlobalRestrictionTransactionV1.getPreviousRestrictionType
- Gets the previousRestrictionType field.
- Returns:
- The previousRestrictionType field.
-
setPreviousRestrictionType
- MosaicGlobalRestrictionTransactionV1.setPreviousRestrictionType
- Sets the previousRestrictionType field.
- Parameters:
value- New previousRestrictionType value.
-
getNewRestrictionType
- MosaicGlobalRestrictionTransactionV1.getNewRestrictionType
- Gets the newRestrictionType field.
- Returns:
- The newRestrictionType field.
-
setNewRestrictionType
- MosaicGlobalRestrictionTransactionV1.setNewRestrictionType
- Sets the newRestrictionType field.
- Parameters:
value- New newRestrictionType value.
-
size
public int size()- MosaicGlobalRestrictionTransactionV1.size
- Calculates the size of the object.
- Specified by:
sizein interfaceSerializer- Overrides:
sizein classTransaction- Returns:
- Size of this object in bytes.
-
deserialize
- MosaicGlobalRestrictionTransactionV1.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
- MosaicGlobalRestrictionTransactionV1.serializeInto
- Writes this object's fields into the supplied buffer.
- Overrides:
serializeIntoin classTransaction- Parameters:
buffer- Output writer.
-
toString
- MosaicGlobalRestrictionTransactionV1.toString
- Returns a string representation of this object.
- Overrides:
toStringin classTransaction- Returns:
- String representation of this object.
-
toJson
- MosaicGlobalRestrictionTransactionV1.toJson
- Converts this object to a JSON-serializable representation.
- Overrides:
toJsonin classTransaction- Returns:
- JSON-serializable representation of this object.
-