Class CorDappManifest
-
- All Implemented Interfaces:
-
java.io.Externalizable
,java.io.Serializable
,java.lang.Comparable
,org.apache.avro.generic.GenericContainer
,org.apache.avro.generic.GenericRecord
,org.apache.avro.generic.IndexedRecord
,org.apache.avro.specific.SpecificRecord
public class CorDappManifest extends SpecificRecordBase implements SpecificRecord
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
CorDappManifest.Builder
RecordBuilder for CorDappManifest instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public String
bundleSymbolicName
public String
bundleVersion
public int
minPlatformVersion
public int
targetPlatformVersion
public CorDappType
type
public String
shortName
public String
vendor
public Integer
versionId
public String
license
public Map<String, String>
attributes
-
Constructor Summary
Constructors Constructor Description CorDappManifest()
Default constructor. CorDappManifest(String bundleSymbolicName, String bundleVersion, Integer minPlatformVersion, Integer targetPlatformVersion, CorDappType type, String shortName, String vendor, Integer versionId, String license, Map<String, String> attributes)
All-args constructor.
-
Method Summary
Modifier and Type Method Description String
getBundleSymbolicName()
Gets the value of the 'bundleSymbolicName' field. void
setBundleSymbolicName(String value)
Sets the value of the 'bundleSymbolicName' field. String
getBundleVersion()
Gets the value of the 'bundleVersion' field. void
setBundleVersion(String value)
Sets the value of the 'bundleVersion' field. int
getMinPlatformVersion()
Gets the value of the 'minPlatformVersion' field. void
setMinPlatformVersion(int value)
Sets the value of the 'minPlatformVersion' field. int
getTargetPlatformVersion()
Gets the value of the 'targetPlatformVersion' field. void
setTargetPlatformVersion(int value)
Sets the value of the 'targetPlatformVersion' field. CorDappType
getType()
Gets the value of the 'type' field. void
setType(CorDappType value)
Sets the value of the 'type' field. String
getShortName()
Gets the value of the 'shortName' field. void
setShortName(String value)
Sets the value of the 'shortName' field. String
getVendor()
Gets the value of the 'vendor' field. void
setVendor(String value)
Sets the value of the 'vendor' field. Integer
getVersionId()
Gets the value of the 'versionId' field. void
setVersionId(Integer value)
Sets the value of the 'versionId' field. String
getLicense()
Gets the value of the 'license' field. void
setLicense(String value)
Sets the value of the 'license' field. Map<String, String>
getAttributes()
Gets the value of the 'attributes' field. void
setAttributes(Map<String, String> value)
Sets the value of the 'attributes' field. static Schema
getClassSchema()
static BinaryMessageEncoder<CorDappManifest>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<CorDappManifest>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<CorDappManifest>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this CorDappManifest to a ByteBuffer. static CorDappManifest
fromByteBuffer(ByteBuffer b)
Deserializes a CorDappManifest from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static CorDappManifest.Builder
newBuilder()
Creates a new CorDappManifest RecordBuilder. static CorDappManifest.Builder
newBuilder(CorDappManifest.Builder other)
Creates a new CorDappManifest RecordBuilder by copying an existing Builder. static CorDappManifest.Builder
newBuilder(CorDappManifest other)
Creates a new CorDappManifest RecordBuilder by copying an existing CorDappManifest instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
void
customEncode(Encoder out)
void
customDecode(ResolvingDecoder in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, equals, getConversion, hashCode, toString
-
Methods inherited from class org.apache.avro.generic.GenericRecord
hasField
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CorDappManifest
CorDappManifest()
Default constructor.
-
CorDappManifest
CorDappManifest(String bundleSymbolicName, String bundleVersion, Integer minPlatformVersion, Integer targetPlatformVersion, CorDappType type, String shortName, String vendor, Integer versionId, String license, Map<String, String> attributes)
All-args constructor.- Parameters:
bundleSymbolicName
- The new value for bundleSymbolicNamebundleVersion
- The new value for bundleVersionminPlatformVersion
- The new value for minPlatformVersiontargetPlatformVersion
- The new value for targetPlatformVersiontype
- The new value for typeshortName
- The new value for shortNamevendor
- The new value for vendorversionId
- The new value for versionIdlicense
- The new value for licenseattributes
- The new value for attributes
-
-
Method Detail
-
getBundleSymbolicName
String getBundleSymbolicName()
Gets the value of the 'bundleSymbolicName' field.
-
setBundleSymbolicName
void setBundleSymbolicName(String value)
Sets the value of the 'bundleSymbolicName' field.
- Parameters:
value
- the value to set.
-
getBundleVersion
String getBundleVersion()
Gets the value of the 'bundleVersion' field.
-
setBundleVersion
void setBundleVersion(String value)
Sets the value of the 'bundleVersion' field.
- Parameters:
value
- the value to set.
-
getMinPlatformVersion
int getMinPlatformVersion()
Gets the value of the 'minPlatformVersion' field.
-
setMinPlatformVersion
void setMinPlatformVersion(int value)
Sets the value of the 'minPlatformVersion' field.
- Parameters:
value
- the value to set.
-
getTargetPlatformVersion
int getTargetPlatformVersion()
Gets the value of the 'targetPlatformVersion' field.
-
setTargetPlatformVersion
void setTargetPlatformVersion(int value)
Sets the value of the 'targetPlatformVersion' field.
- Parameters:
value
- the value to set.
-
getType
CorDappType getType()
Gets the value of the 'type' field.
-
setType
void setType(CorDappType value)
Sets the value of the 'type' field.
- Parameters:
value
- the value to set.
-
getShortName
String getShortName()
Gets the value of the 'shortName' field.
-
setShortName
void setShortName(String value)
Sets the value of the 'shortName' field.
- Parameters:
value
- the value to set.
-
setVendor
void setVendor(String value)
Sets the value of the 'vendor' field.
- Parameters:
value
- the value to set.
-
getVersionId
Integer getVersionId()
Gets the value of the 'versionId' field.
-
setVersionId
void setVersionId(Integer value)
Sets the value of the 'versionId' field.
- Parameters:
value
- the value to set.
-
getLicense
String getLicense()
Gets the value of the 'license' field.
-
setLicense
void setLicense(String value)
Sets the value of the 'license' field.
- Parameters:
value
- the value to set.
-
getAttributes
Map<String, String> getAttributes()
Gets the value of the 'attributes' field.
-
setAttributes
void setAttributes(Map<String, String> value)
Sets the value of the 'attributes' field.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<CorDappManifest> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<CorDappManifest> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<CorDappManifest> createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.
- Parameters:
resolver
- a SchemaStore used to find schemas by fingerprint
-
toByteBuffer
ByteBuffer toByteBuffer()
Serializes this CorDappManifest to a ByteBuffer.
-
fromByteBuffer
static CorDappManifest fromByteBuffer(ByteBuffer b)
Deserializes a CorDappManifest from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
newBuilder
static CorDappManifest.Builder newBuilder()
Creates a new CorDappManifest RecordBuilder.
-
newBuilder
static CorDappManifest.Builder newBuilder(CorDappManifest.Builder other)
Creates a new CorDappManifest RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static CorDappManifest.Builder newBuilder(CorDappManifest other)
Creates a new CorDappManifest RecordBuilder by copying an existing CorDappManifest instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
customEncode
void customEncode(Encoder out)
-
customDecode
void customDecode(ResolvingDecoder in)
-
-
-
-