public static class ValueSet.Definition.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder()
Construct a new builder class.
|
| Modifier and Type | Method and Description |
|---|---|
ValueSet.Definition.Builder |
add(ValueSet.Definition.Property property)
Add a new parameter to the definition.
|
ValueSet.Definition |
build()
Build an immutable definition that can be used in ValueSet instances.
|
ValueSet.Definition.Builder |
loadStorageBytes(byte[] bytes)
Load a definition from a versioned array of bytes.
|
ValueSet.Definition.Builder |
loadTransferBytes(org.opendof.core.oal.DOFInterfaceID version,
byte[] bytes)
Load a definition from an unversioned array of bytes using the specified version.
|
public Builder()
public ValueSet.Definition.Builder loadStorageBytes(byte[] bytes)
#add(Property).bytes - The byte array which contains the version and the definition.public ValueSet.Definition.Builder loadTransferBytes(org.opendof.core.oal.DOFInterfaceID version, byte[] bytes)
#add(Property).version - The version describing the marshal format of the bytes. Must not be null.
loadStorageBytes(byte[]) should be used if version is unknown by the caller but is defined in the byte array.bytes - The byte array which contains the definition.ValueSet.DEFAULT_SINK_VERSIONpublic ValueSet.Definition.Builder add(ValueSet.Definition.Property property)
loadStorageBytes(byte[]) or loadTransferBytes(DOFInterfaceID, byte[]).property - The parameter to add.public ValueSet.Definition build() throws java.lang.Exception
java.lang.Exception - Thrown if a valid Definition cannot be constructed.