Class MosaicDefinition
- All Implemented Interfaces:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MosaicDefinitiondeserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.byte[]Gets the description field.Reads a named field.getId()Gets the id field.getLevy()Gets the levy field.longGets the levySize field.Gets the ownerPublicKey field.Gets the properties field.protected voidserializeInto(Writer buffer) Writes this object's fields into the supplied buffer.voidsetDescription(byte[] value) Sets the description field.voidSets a named field.voidSets the id field.voidsetLevy(MosaicLevy value) Sets the levy field.voidsetOwnerPublicKey(PublicKey value) Sets the ownerPublicKey field.voidSets the properties 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.CatbufferType
asByteArray, asBytes, asInt, asList, asLong, serialize, toJsonString
-
Field Details
-
TYPE_HINTS
-
-
Constructor Details
-
MosaicDefinition
public MosaicDefinition()Creates a new MosaicDefinition.
-
-
Method Details
-
typeHints
- MosaicDefinition.typeHints
Returns the type-hint map driving the rule-based descriptor pipeline.
- Overrides:
typeHintsin classCatbufferType- Returns:
Field-name → rule-key map.
-
setField
- MosaicDefinition.setField
Sets a named field. Used by the rule-based descriptor pipeline.
- Overrides:
setFieldin classCatbufferType- Parameters:
name- Field name (descriptor key).value- Value to assign.
-
getField
- MosaicDefinition.getField
Reads a named field. Used by the facade-level entity inspection helpers.
- Overrides:
getFieldin classCatbufferType- Parameters:
name- Field name.- Returns:
Field value.
-
sort
public void sort()- MosaicDefinition.sort
Sorts the collections of this object so that it can be serialized canonically.
- Overrides:
sortin classCatbufferType
-
getOwnerPublicKey
- MosaicDefinition.getOwnerPublicKey
Gets the ownerPublicKey field.
- Returns:
The ownerPublicKey field.
-
setOwnerPublicKey
- MosaicDefinition.setOwnerPublicKey
Sets the ownerPublicKey field.
- Parameters:
value- New ownerPublicKey value.
-
getId
- MosaicDefinition.getId
Gets the id field.
- Returns:
The id field.
-
setId
- MosaicDefinition.setId
Sets the id field.
- Parameters:
value- New id value.
-
getDescription
public byte[] getDescription()- MosaicDefinition.getDescription
Gets the description field.
- Returns:
The description field.
-
setDescription
public void setDescription(byte[] value) - MosaicDefinition.setDescription
Sets the description field.
- Parameters:
value- New description value.
-
getProperties
- MosaicDefinition.getProperties
Gets the properties field.
- Returns:
The properties field.
-
setProperties
- MosaicDefinition.setProperties
Sets the properties field.
- Parameters:
value- New properties value.
-
getLevy
- MosaicDefinition.getLevy
Gets the levy field.
- Returns:
The levy field.
-
setLevy
- MosaicDefinition.setLevy
Sets the levy field.
- Parameters:
value- New levy value.
-
getLevySizeComputed
public long getLevySizeComputed()- MosaicDefinition.getLevySizeComputed
Gets the levySize field.
- Returns:
The levySize field.
-
size
public int size()- MosaicDefinition.size
Calculates the size of the object.
- Returns:
Size of this object in bytes.
-
deserialize
- MosaicDefinition.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
- MosaicDefinition.serializeInto
Writes this object's fields into the supplied buffer.
- Specified by:
serializeIntoin classCatbufferType- Parameters:
buffer- Output writer.
-
toString
- MosaicDefinition.toString
Returns a string representation of this object.
-
toJson
- MosaicDefinition.toJson
Converts this object to a JSON-serializable representation.
- Specified by:
toJsonin classCatbufferType- Returns:
JSON-serializable representation of this object.
-