java.lang.Object
org.praxislive.core.Info.ComponentInfoBuilder
- Enclosing class:
Info
ComponentInfoBuilder class
-
Method Summary
Modifier and TypeMethodDescriptionbuild()control(String id, Function<Info.ControlInfoChooser, Info.ControlInfoBuilder<?>> ctrl) Add control info by applying the supplied function to choose and configure a builder.control(String id, ControlInfo info) Add control info.merge(ComponentInfo info) Merge all elements of the provided ComponentInfo.Add port info by applying the supplied function to choose and configure a builder.Add port info.Add custom property.Add a protocol.Add a protocol.
-
Method Details
-
control
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
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
Add custom property.- Parameters:
key- String keyvalue- Object value- Returns:
- this
-
protocol
Add a protocol.- Parameters:
protocol- Class extending Protocol- Returns:
- this
-
protocol
Add a protocol.- Parameters:
protocol- protocol name- Returns:
- this
-
merge
Merge all elements of the provided ComponentInfo.- Parameters:
info- ComponentInfo to merge- Returns:
- this
-
build
-