@NoExtend public class DefaultComponentLocation extends Object implements ComponentLocation, Serializable
DefaultComponentLocation.DefaultLocationPart
s 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 |
appendLocationPart(String partPath,
Optional<TypedComponentIdentifier> partIdentifier,
Optional<String> fileName,
Optional<Integer> lineInFile)
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.
|
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. |
TypedComponentIdentifier |
getComponentIdentifier() |
Optional<String> |
getFileName() |
Optional<Integer> |
getLineInFile() |
String |
getLocation() |
Optional<String> |
getName() |
List<LocationPart> |
getParts() |
String |
getRootContainerName()
Gets the name of the root containing element.
|
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<LocationPart> getParts()
getParts
in interface ComponentLocation
public TypedComponentIdentifier getComponentIdentifier()
getComponentIdentifier
in interface ComponentLocation
ComponentIdentifier
of the component associated with this locationpublic Optional<String> getFileName()
getFileName
in interface ComponentLocation
public Optional<Integer> getLineInFile()
getLineInFile
in interface ComponentLocation
public String getLocation()
getLocation
in interface ComponentLocation
DefaultComponentLocation
.public String getRootContainerName()
getRootContainerName
in interface ComponentLocation
this
location. Non-null.public DefaultComponentLocation appendLocationPart(String partPath, Optional<TypedComponentIdentifier> partIdentifier, Optional<String> fileName, Optional<Integer> lineInFile)
partPath
- the path of this partpartIdentifier
- the component identifier of the part if it's not a synthetic partpublic DefaultComponentLocation appendProcessorsPart()
public DefaultComponentLocation appendRoutePart()
Copyright © 2018. All rights reserved.