Class MosaicMetadataTransactionV1Descriptor
java.lang.Object
org.symbol.sdk.symbol.descriptors.MosaicMetadataTransactionV1Descriptor
- All Implemented Interfaces:
SymbolTransactionDescriptor,SymbolTypedDescriptor,TypedDescriptor
public final class MosaicMetadataTransactionV1Descriptor
extends Object
implements SymbolTransactionDescriptor
- MosaicMetadataTransactionV1Descriptor
- Type safe descriptor used to generate a descriptor map for MosaicMetadataTransactionV1Descriptor. Associate a key-value state ([metadata](/concepts/metadata.html)) to a **mosaic** (V1, latest). Compare to AccountMetadataTransaction and NamespaceMetadataTransaction.
-
Constructor Summary
ConstructorsConstructorDescriptionMosaicMetadataTransactionV1Descriptor(String targetAddress, long scopedMetadataKey, String targetMosaicId, int valueSizeDelta) Creates a descriptor for MosaicMetadataTransactionV1 from string-form values.MosaicMetadataTransactionV1Descriptor(Address targetAddress, long scopedMetadataKey, UnresolvedMosaicId targetMosaicId, int valueSizeDelta) Creates a descriptor for MosaicMetadataTransactionV1. -
Method Summary
-
Constructor Details
-
MosaicMetadataTransactionV1Descriptor
public MosaicMetadataTransactionV1Descriptor(Address targetAddress, long scopedMetadataKey, UnresolvedMosaicId targetMosaicId, int valueSizeDelta) Creates a descriptor for MosaicMetadataTransactionV1.- Parameters:
targetAddress- Account owning the mosaic whose metadata should be modified.scopedMetadataKey- Metadata key scoped to source, target and type.targetMosaicId- Mosaic whose metadata should be modified.valueSizeDelta- Change in value size in bytes, compared to previous size.
-
MosaicMetadataTransactionV1Descriptor
public MosaicMetadataTransactionV1Descriptor(String targetAddress, long scopedMetadataKey, String targetMosaicId, int valueSizeDelta) Creates a descriptor for MosaicMetadataTransactionV1 from string-form values.- Parameters:
targetAddress- Account owning the mosaic whose metadata should be modified.scopedMetadataKey- Metadata key scoped to source, target and type.targetMosaicId- Mosaic whose metadata should be modified.valueSizeDelta- Change in value size in bytes, compared to previous size.
-
-
Method Details
-
value
- MosaicMetadataTransactionV1Descriptor.value
- Sets the value field.
- Parameters:
value- Difference between existing value and new value. \note When there is no existing value, this array is directly used and `value_size_delta`==`value_size`. \note When there is an existing value, the new value is the byte-wise XOR of the previous value and this array.- Returns:
- This descriptor for chaining.
-
value
- MosaicMetadataTransactionV1Descriptor.value
- Sets the value field.
- Parameters:
value- Difference between existing value and new value. \note When there is no existing value, this array is directly used and `value_size_delta`==`value_size`. \note When there is an existing value, the new value is the byte-wise XOR of the previous value and this array.- Returns:
- This descriptor for chaining.
-
toMap
- MosaicMetadataTransactionV1Descriptor.toMap
- Builds a representation of this descriptor that can be passed to a factory function.
- Specified by:
toMapin interfaceTypedDescriptor- Returns:
- Descriptor map that can be passed to a transaction factory.
-