@NoExtend public class DefaultComponentLocation extends Object implements org.mule.runtime.api.component.location.ComponentLocation, Serializable
DefaultComponentLocation.DefaultLocationParts in FLOW_NAME/processors/1 are:
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultComponentLocation.DefaultLocationPart
A location part represent an specific location of a component within another component.
|
| Constructor and Description |
|---|
DefaultComponentLocation(Optional<String> name,
List<DefaultComponentLocation.DefaultLocationPart> parts) |
| Modifier and Type | Method and Description |
|---|---|
DefaultComponentLocation |
appendConnectionPart(Optional<org.mule.runtime.api.component.TypedComponentIdentifier> partIdentifier,
Optional<String> fileName,
OptionalInt lineInFile,
OptionalInt startColumn)
Utility method that adds a connection part to the location.
|
DefaultComponentLocation |
appendLocationPart(String partPath,
Optional<org.mule.runtime.api.component.TypedComponentIdentifier> partIdentifier,
Optional<String> fileName,
Optional<Integer> lineInFile,
Optional<Integer> startColumn)
Deprecated.
since 1.3 use
appendLocationPart(String, Optional, Optional, OptionalInt, OptionalInt) instead. |
DefaultComponentLocation |
appendLocationPart(String partPath,
Optional<org.mule.runtime.api.component.TypedComponentIdentifier> partIdentifier,
Optional<String> fileName,
OptionalInt lineInFile,
OptionalInt startColumn)
Creates a new instance of ComponentLocation adding the specified part.
|
DefaultComponentLocation |
appendProcessorsPart()
Utility method that adds a processors part to the location.
|
DefaultComponentLocation |
appendRoutePart()
Utility method that adds a router part to the location.
|
protected org.mule.runtime.api.component.TypedComponentIdentifier |
calculateComponentIdentifier(List<DefaultComponentLocation.DefaultLocationPart> parts) |
boolean |
equals(Object o) |
static DefaultComponentLocation |
fromSingleComponent(String component)
Creates a virtual
ComponentLocation for a single element, using the core namespace and using UNKNOWN as type. |
org.mule.runtime.api.component.TypedComponentIdentifier |
getComponentIdentifier() |
Optional<String> |
getFileName() |
Optional<Integer> |
getLineInFile() |
String |
getLocation() |
Optional<String> |
getName() |
List<org.mule.runtime.api.component.location.LocationPart> |
getParts() |
String |
getRootContainerName() |
Optional<Integer> |
getStartColumn() |
int |
hashCode() |
String |
toString() |
public DefaultComponentLocation(Optional<String> name, List<DefaultComponentLocation.DefaultLocationPart> parts)
name - the name of the global element in which the specific component is located.parts - the set of parts to locate the component.public static DefaultComponentLocation fromSingleComponent(String component)
ComponentLocation for a single element, using the core namespace and using UNKNOWN as type. Only
meant for situations where a real location cannot be obtained.component - the name of the elementpublic List<org.mule.runtime.api.component.location.LocationPart> getParts()
getParts in interface org.mule.runtime.api.component.location.ComponentLocationpublic org.mule.runtime.api.component.TypedComponentIdentifier getComponentIdentifier()
getComponentIdentifier in interface org.mule.runtime.api.component.location.ComponentLocationpublic Optional<String> getFileName()
getFileName in interface org.mule.runtime.api.component.location.ComponentLocationpublic Optional<Integer> getLineInFile()
getLineInFile in interface org.mule.runtime.api.component.location.ComponentLocationpublic Optional<Integer> getStartColumn()
getStartColumn in interface org.mule.runtime.api.component.location.ComponentLocationpublic String getLocation()
getLocation in interface org.mule.runtime.api.component.location.ComponentLocationDefaultComponentLocation.public String getRootContainerName()
getRootContainerName in interface org.mule.runtime.api.component.location.ComponentLocationpublic DefaultComponentLocation appendLocationPart(String partPath, Optional<org.mule.runtime.api.component.TypedComponentIdentifier> partIdentifier, Optional<String> fileName, OptionalInt lineInFile, OptionalInt startColumn)
partPath - the path of this partpartIdentifier - the component identifier of the part if it's not a synthetic part@Deprecated public DefaultComponentLocation appendLocationPart(String partPath, Optional<org.mule.runtime.api.component.TypedComponentIdentifier> partIdentifier, Optional<String> fileName, Optional<Integer> lineInFile, Optional<Integer> startColumn)
appendLocationPart(String, Optional, Optional, OptionalInt, OptionalInt) instead.partPath - the path of this partpartIdentifier - the component identifier of the part if it's not a synthetic partpublic DefaultComponentLocation appendProcessorsPart()
public DefaultComponentLocation appendRoutePart()
public DefaultComponentLocation appendConnectionPart(Optional<org.mule.runtime.api.component.TypedComponentIdentifier> partIdentifier, Optional<String> fileName, OptionalInt lineInFile, OptionalInt startColumn)
protected org.mule.runtime.api.component.TypedComponentIdentifier calculateComponentIdentifier(List<DefaultComponentLocation.DefaultLocationPart> parts)
Copyright © 2021 MuleSoft, Inc.. All rights reserved.