Class StoredVersionedContractByName
- java.lang.Object
-
- com.syntifi.casper.sdk.model.deploy.executabledeploy.StoredVersionedContractByName
-
- All Implemented Interfaces:
EncodableValue
,ExecutableDeployItem
public class StoredVersionedContractByName extends java.lang.Object implements ExecutableDeployItem
Abstract Executable Deploy Item containing the StoredVersionedContractByName.- Since:
- 0.0.1
- See Also:
ExecutableDeployItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StoredVersionedContractByName.StoredVersionedContractByNameBuilder
-
Constructor Summary
Constructors Constructor Description StoredVersionedContractByName()
StoredVersionedContractByName(java.lang.String name, long version, java.lang.String entryPoint, java.util.List<NamedArg<?>> args)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StoredVersionedContractByName.StoredVersionedContractByNameBuilder
builder()
void
encode(CLValueEncoder clve, boolean encodeType)
Implements the StoredVersionedContractName encoderjava.util.List<NamedArg<?>>
getArgs()
List of @see NamedArgjava.lang.String
getEntryPoint()
Entry Pointjava.lang.String
getName()
Contract Namebyte
getOrder()
ExecutableDeployItem
order 4long
getVersion()
contract versionvoid
setArgs(java.util.List<NamedArg<?>> args)
List of @see NamedArgvoid
setEntryPoint(java.lang.String entryPoint)
Entry Pointvoid
setName(java.lang.String name)
Contract Namevoid
setVersion(long version)
contract version
-
-
-
Constructor Detail
-
StoredVersionedContractByName
public StoredVersionedContractByName(java.lang.String name, long version, java.lang.String entryPoint, java.util.List<NamedArg<?>> args)
-
StoredVersionedContractByName
public StoredVersionedContractByName()
-
-
Method Detail
-
getOrder
public byte getOrder()
ExecutableDeployItem
order 4- Specified by:
getOrder
in interfaceExecutableDeployItem
-
encode
public void encode(CLValueEncoder clve, boolean encodeType) throws java.io.IOException, CLValueEncodeException, DynamicInstanceException, NoSuchTypeException
Implements the StoredVersionedContractName encoder- Specified by:
encode
in interfaceEncodableValue
- Parameters:
clve
- the encoder to be usedencodeType
- append encoded type?- Throws:
java.io.IOException
- thrown if an IO error occursCLValueEncodeException
- thrown if failed to encode a cl valueDynamicInstanceException
- thrown if it could not instantiate a typeNoSuchTypeException
- thrown if type not found
-
builder
public static StoredVersionedContractByName.StoredVersionedContractByNameBuilder builder()
-
getName
public java.lang.String getName()
Contract Name
-
getVersion
public long getVersion()
contract version
-
getEntryPoint
public java.lang.String getEntryPoint()
Entry Point
-
getArgs
public java.util.List<NamedArg<?>> getArgs()
List of @see NamedArg
-
setName
public void setName(java.lang.String name)
Contract Name
-
setVersion
public void setVersion(long version)
contract version
-
setEntryPoint
public void setEntryPoint(java.lang.String entryPoint)
Entry Point
-
setArgs
public void setArgs(java.util.List<NamedArg<?>> args)
List of @see NamedArg
-
-