public static class CloudioAdLibNode.Builder
extends java.lang.Object
Constructor | Description |
---|---|
Builder() |
Modifier and Type | Method | Description |
---|---|---|
CloudioAdLibNode |
build() |
Finishes building the actual node and returns a reference to the node.
|
CloudioAdLibNode.Builder |
implement(java.lang.String... interfaces) |
Declares the given interfaces as implemented by the node in construction.
|
CloudioAdLibNode.Builder |
object(java.lang.String name,
CloudioObject object) |
Adds the given object to this custom node under the given name.
|
<T extends CloudioObject> |
object(java.lang.String name,
java.lang.Class<T> clazz) |
Adds an object of the given class with the given name to the custom node.
|
public <T extends CloudioObject> CloudioAdLibNode.Builder object(java.lang.String name, java.lang.Class<T> clazz) throws DuplicateNamedItemException, InvalidCloudioObjectException
T
- Type of the object.name
- Name to give to the object after creation.clazz
- The class of the object to create and add.DuplicateNamedItemException
- If there already exists an object with the given name.InvalidCloudioObjectException
- The object class is invalid.public CloudioAdLibNode.Builder object(java.lang.String name, CloudioObject object) throws DuplicateNamedItemException
name
- Name to give to the object inside the node.object
- The object to add.DuplicateNamedItemException
- If there already exists an object with the given name.public CloudioAdLibNode.Builder implement(java.lang.String... interfaces)
interfaces
- List of interfaces to be declared as implemented by the node.public CloudioAdLibNode build()