public static class ComponentModel.Builder extends Object
ComponentModel.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ComponentModel.Builder |
addChildComponentModel(ComponentModel componentModel)
Adds a new complex child object to this
ComponentModel. |
ComponentModel.Builder |
addCustomAttribute(String name,
Object value)
Adds a custom attribute to the
ComponentModel. |
ComponentModel.Builder |
addParameter(String parameterName,
String value,
boolean valueFromSchema) |
ComponentModel |
build() |
ComponentModel.Builder |
markAsRootComponent()
When invoked the created
ComponentModel will be marked us a top level configuration. |
ComponentModel.Builder |
setIdentifier(ComponentIdentifier identifier) |
ComponentModel.Builder |
setTextContent(String textContent)
Sets the inner content of the configuration element.
|
public ComponentModel.Builder setIdentifier(ComponentIdentifier identifier)
identifier - identifier for the configuration element this object represents.public ComponentModel.Builder addParameter(String parameterName, String value, boolean valueFromSchema)
parameterName - name of the configuration parameter.value - value contained by the configuration parameter.valueFromSchema - public ComponentModel.Builder addChildComponentModel(ComponentModel componentModel)
ComponentModel.componentModel - child ComponentModel declared in the configuration.public ComponentModel.Builder setTextContent(String textContent)
textContent - inner text content from the configuration.public ComponentModel.Builder markAsRootComponent()
ComponentModel will be marked us a top level configuration.public ComponentModel.Builder addCustomAttribute(String name, Object value)
ComponentModel. This custom attribute is meant to hold metadata of the configuration
and not to be used to instantiate the runtime object that corresponds to this configuration.name - custom attribute name.value - custom attribute value.public ComponentModel build()
ComponentModel created based on the supplied parameters.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.