- java.lang.Object
-
- org.praxislive.core.Info.ComponentInfoBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentInfo
build()
Info.ComponentInfoBuilder
control(String id, Function<Info.ControlInfoChooser,Info.ControlInfoBuilder<?>> ctrl)
Add control info by applying the supplied function to choose and configure a builder.Info.ComponentInfoBuilder
control(String id, ControlInfo info)
Add control info.Info.ComponentInfoBuilder
merge(ComponentInfo info)
Merge all elements of the provided ComponentInfo.Info.ComponentInfoBuilder
port(String id, Function<Info.PortInfoChooser,Info.PortInfoBuilder> p)
Add port info by applying the supplied function to choose and configure a builder.Info.ComponentInfoBuilder
port(String id, PortInfo info)
Add port info.Info.ComponentInfoBuilder
property(String key, Object value)
Add custom property.Info.ComponentInfoBuilder
protocol(Class<? extends Protocol> protocol)
Add a protocol.
-
-
-
Method Detail
-
control
public Info.ComponentInfoBuilder control(String id, ControlInfo info)
Add control info.- Parameters:
id
- control IDinfo
- control info- Returns:
- this
-
control
public Info.ComponentInfoBuilder control(String id, Function<Info.ControlInfoChooser,Info.ControlInfoBuilder<?>> ctrl)
Add control info by applying the supplied function to choose and configure a builder.- Parameters:
id
- control IDctrl
- function to choose and configure builder- Returns:
- this
-
port
public Info.ComponentInfoBuilder port(String id, PortInfo info)
Add port info.- Parameters:
id
- port IDinfo
- port info- Returns:
- this
-
port
public Info.ComponentInfoBuilder port(String id, Function<Info.PortInfoChooser,Info.PortInfoBuilder> p)
Add port info by applying the supplied function to choose and configure a builder.- Parameters:
id
- port IDp
- function to choose and configure builder- Returns:
- this
-
property
public Info.ComponentInfoBuilder property(String key, Object value)
Add custom property.- Parameters:
key
- String keyvalue
- Object value- Returns:
- this
-
protocol
public Info.ComponentInfoBuilder protocol(Class<? extends Protocol> protocol)
Add a protocol.- Parameters:
protocol
- Class extending Protocol- Returns:
- this
-
merge
public Info.ComponentInfoBuilder merge(ComponentInfo info)
Merge all elements of the provided ComponentInfo.- Parameters:
info
- ComponentInfo to merge- Returns:
- this
-
build
public ComponentInfo build()
-
-