public static class Location.LocationBuilder extends Object implements Location.Builder
| Constructor and Description |
|---|
LocationBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Location.Builder |
addConnectionPart()
Adds a new
Location.CONNECTION part at the end of the location. |
Location.Builder |
addErrorHandlerPart()
Adds a new
Location.ERROR_HANDLER part at the end of the location. |
Location.Builder |
addIndexPart(int index)
Adds a new index part.
|
Location.Builder |
addParameterPart()
Adds a new
Location.PARAMETERS part at the end of the location. |
Location.Builder |
addPart(String part)
Adds a new part at the end of the location.
|
Location.Builder |
addProcessorsPart()
Adds a new
Location.PROCESSORS part at the end of the location. |
Location.Builder |
addSourcePart()
Adds a new
Location.SOURCE part at the end of the location. |
Location |
build() |
Location.Builder |
globalName(String globalName)
Sets the name of the global component.
|
Location.Builder |
parts(List<String> parts)
Adds the parts of this location.
|
public Location.Builder globalName(String globalName)
Location.BuilderglobalName in interface Location.BuilderglobalName - the name of the global componentpublic Location.Builder addPart(String part)
Location.BuilderaddPart in interface Location.Builderpart - the name of the partpublic Location.Builder addConnectionPart()
Location.BuilderLocation.CONNECTION part at the end of the location.
Connection elements within a configuration component must be addressed using a Location.CONNECTION part.
addConnectionPart in interface Location.Builderpublic Location.Builder addSourcePart()
Location.BuilderLocation.SOURCE part at the end of the location.
Message sources within other component must be addressed using a Location.SOURCE part.
addSourcePart in interface Location.Builderpublic Location.Builder addProcessorsPart()
Location.BuilderLocation.PROCESSORS part at the end of the location.
Components that allow nested processors must have Location.PROCESSORS as part before the nested processors indexes.
addProcessorsPart in interface Location.Builderpublic Location.Builder addErrorHandlerPart()
Location.BuilderLocation.ERROR_HANDLER part at the end of the location.
Components that allow nested on-error components must have Location.ERROR_HANDLER as part before the
on-error indexes.
addErrorHandlerPart in interface Location.Builderpublic Location.Builder addParameterPart()
Location.BuilderLocation.PARAMETERS part at the end of the location.
Components that allow nested parameters must have Location.PARAMETERS as part before the parameter name.
addParameterPart in interface Location.Builderpublic Location.Builder addIndexPart(int index)
Location.BuilderThere cannot be two index parts consecutively.
addIndexPart in interface Location.Builderindex - the index of the component.public Location.Builder parts(List<String> parts)
Location.Builderparts in interface Location.Builderparts - the parts of the locationpublic Location build()
build in interface Location.BuilderCopyright © 2017 MuleSoft, Inc.. All rights reserved.