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

    • InputLocation

      public InputLocation(int lineNumber, int columnNumber)
    • InputLocation

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

    • clone

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

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

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

      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 - a key object.
      Returns:
      InputLocation
    • getLocations

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

      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 - a key object.
      location - a location object.
    • setOtherLocation

      public void setOtherLocation(Object key, InputLocation location)
      Parameters:
      key - a key object.
      location - a location object.
    • getSource

      public InputSource getSource()
      Get the source field.
      Returns:
      InputSource
    • merge

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

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

      public void setLocations(Map<Object,InputLocation> locations)
      Parameters:
      locations - a locations object.
    • toString

      public String toString()
      Overrides:
      toString in class Object