Class DefaultComponentLocation.DefaultLocationPart

java.lang.Object
org.mule.runtime.dsl.api.component.config.DefaultComponentLocation.DefaultLocationPart
All Implemented Interfaces:
Serializable, org.mule.runtime.api.component.location.LocationPart
Enclosing class:
DefaultComponentLocation

@NoInstantiate @NoExtend public static class DefaultComponentLocation.DefaultLocationPart extends Object implements org.mule.runtime.api.component.location.LocationPart, Serializable
A location part represent an specific location of a component within another component.
Since:
4.0
See Also:
  • Constructor Details

    • DefaultLocationPart

      public DefaultLocationPart(String partPath, Optional<org.mule.runtime.api.component.TypedComponentIdentifier> partIdentifier, Optional<String> fileName, OptionalInt lineInFile, OptionalInt startColumn)
      Parameters:
      partPath - the path of this part
      partIdentifier - the component identifier of the part if it's not a synthetic part
      fileName - the file name in which the component was defined
      lineInFile - the line number in which the component was defined
      startColumn - the column number in which the component was defined
      Since:
      1.3
    • DefaultLocationPart

      @Deprecated public DefaultLocationPart(String partPath, Optional<org.mule.runtime.api.component.TypedComponentIdentifier> partIdentifier, Optional<String> fileName, Optional<Integer> lineInFile, Optional<Integer> startColumn)
      Deprecated.
      since 1.3 use #DefaultComponentLocation(String, Optional, Optional, Optional, Optional) instead.
      Parameters:
      partPath - the path of this part
      partIdentifier - the component identifier of the part if it's not a synthetic part
      fileName - the file name in which the component was defined
      lineInFile - the line number in which the component was defined
  • Method Details

    • getPartPath

      public String getPartPath()
      Specified by:
      getPartPath in interface org.mule.runtime.api.component.location.LocationPart
      Returns:
      the string representation of the part
    • getPartIdentifier

      public Optional<org.mule.runtime.api.component.TypedComponentIdentifier> getPartIdentifier()
      Specified by:
      getPartIdentifier in interface org.mule.runtime.api.component.location.LocationPart
      Returns:
      if it's a synthetic part this is null, if not then it's the identifier of the configuration element.
    • getFileName

      public Optional<String> getFileName()
      Specified by:
      getFileName in interface org.mule.runtime.api.component.location.LocationPart
    • getLineInFile

      public Optional<Integer> getLineInFile()
      Specified by:
      getLineInFile in interface org.mule.runtime.api.component.location.LocationPart
    • getLine

      public OptionalInt getLine()
      Specified by:
      getLine in interface org.mule.runtime.api.component.location.LocationPart
    • getStartColumn

      public Optional<Integer> getStartColumn()
      Specified by:
      getStartColumn in interface org.mule.runtime.api.component.location.LocationPart
    • getColumn

      public OptionalInt getColumn()
      Specified by:
      getColumn in interface org.mule.runtime.api.component.location.LocationPart
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object