java.lang.Object
org.praxislive.project.GraphBuilder
Builders for graph component elements.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classGraphBuilder.Base<B extends GraphBuilder.Base<B>>Abstract base class of component and root element builders.static final classComponent element builder.static final classRoot element builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic GraphBuilder.Componentcomponent(org.praxislive.core.ComponentType type) Create a component element builder for the provided component type.static GraphBuilder.Componentcomponent(GraphElement.Component component) Create a component element builder initialized with the type and sub-elements of the provided component element.static GraphBuilder.RootCreate a root element builder for the provided ID and type.static GraphBuilder.Rootroot(GraphElement.Root root) Create a root element builder initialized with the ID, type and sub-elements of the provided root element.static GraphBuilder.RootCreate a root element builder for a synthetic root.
-
Method Details
-
component
Create a component element builder for the provided component type.- Parameters:
type- component type- Returns:
- component builder
-
component
Create a component element builder initialized with the type and sub-elements of the provided component element.- Parameters:
component- base component- Returns:
- builder
-
root
Create a root element builder for the provided ID and type.- Parameters:
id- root IDtype- root type- Returns:
- builder
-
root
Create a root element builder initialized with the ID, type and sub-elements of the provided root element. If the provided root is synthetic then the builder will be too.- Parameters:
root- base root- Returns:
- builder
-
syntheticRoot
Create a root element builder for a synthetic root.- Returns:
- builder
-