Class InputLocation

java.lang.Object
org.apache.maven.model.InputLocation
All Implemented Interfaces:
Serializable, Cloneable, InputLocationTracker

public final class InputLocation extends Object implements Serializable, Cloneable, InputLocationTracker
Class InputLocation.
Version:
$Revision$ $Date$
See Also:
  • Constructor Details Link icon

    • InputLocation Link icon

      public InputLocation(InputLocation location)
    • InputLocation Link icon

      public InputLocation(int lineNumber, int columnNumber)
    • InputLocation Link icon

      public InputLocation(int lineNumber, int columnNumber, InputSource source)
  • Method Details Link icon

    • clone Link icon

      public InputLocation clone()
      Method clone.
      Overrides:
      clone in class Object
      Returns:
      InputLocation
    • getColumnNumber Link icon

      public int getColumnNumber()
      Get the one-based column number. The value will be non-positive if unknown.
      Returns:
      int
    • getLineNumber Link icon

      public int getLineNumber()
      Get the one-based line number. The value will be non-positive if unknown.
      Returns:
      int
    • getLocation Link icon

      public InputLocation getLocation(Object key)
      Description copied from interface: InputLocationTracker
      Gets the location of the specified field in the input source.
      Specified by:
      getLocation in interface InputLocationTracker
      Parameters:
      key -
      Returns:
      InputLocation
    • getLocations Link icon

      public Map<Object,InputLocation> getLocations()
      Returns:
      Map
    • setLocation Link icon

      public void setLocation(Object key, InputLocation location)
      Description copied from interface: InputLocationTracker
      Sets the location of the specified field.
      Specified by:
      setLocation in interface InputLocationTracker
      Parameters:
      key -
      location -
    • setOtherLocation Link icon

      public void setOtherLocation(Object key, InputLocation location)
      Parameters:
      key -
      location -
    • getSource Link icon

      public InputSource getSource()
      Get the source field.
      Returns:
      InputSource
    • getImportedFrom Link icon

      public InputLocation getImportedFrom()
      Gets the parent InputLocation where this InputLocation may have been imported from. Can return null.
      Returns:
      InputLocation
      Since:
      4.0.0
    • setImportedFrom Link icon

      public void setImportedFrom(InputLocation importedFrom)
      Set the imported from location.
      Parameters:
      importedFrom -
    • merge Link icon

      public static InputLocation merge(InputLocation target, InputLocation source, boolean sourceDominant)
      Method merge.
      Parameters:
      target -
      source -
      sourceDominant -
      Returns:
      InputLocation
    • merge Link icon

      public static InputLocation merge(InputLocation target, InputLocation source, Collection<Integer> indices)
      Method merge.
      Parameters:
      target -
      source -
      indices -
      Returns:
      InputLocation
    • setLocations Link icon

      public void setLocations(Map<Object,InputLocation> locations)
      Parameters:
      locations -
    • toApiLocation Link icon

      public InputLocation toApiLocation()
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object