Package org.apache.maven.model
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:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classClass StringFormatter.
- 
Constructor SummaryConstructorsConstructorDescriptionInputLocation(int lineNumber, int columnNumber) InputLocation(int lineNumber, int columnNumber, InputSource source) InputLocation(InputLocation location) 
- 
Method SummaryModifier and TypeMethodDescriptionclone()Method clone.intGet the one-based column number.intGet the one-based line number.getLocation(Object key) Gets the location of the specified field in the input source.Get the source field.static InputLocationmerge(InputLocation target, InputLocation source, boolean sourceDominant) Method merge.static InputLocationmerge(InputLocation target, InputLocation source, Collection<Integer> indices) Method merge.voidsetLocation(Object key, InputLocation location) Sets the location of the specified field.voidsetLocations(Map<Object, InputLocation> locations) voidsetOtherLocation(Object key, InputLocation location) toString()
- 
Constructor Details- 
InputLocation
- 
InputLocationpublic InputLocation(int lineNumber, int columnNumber) 
- 
InputLocation
 
- 
- 
Method Details- 
cloneMethod clone.
- 
getColumnNumberpublic int getColumnNumber()Get the one-based column number. The value will be non-positive if unknown.- Returns:
- int
 
- 
getLineNumberpublic int getLineNumber()Get the one-based line number. The value will be non-positive if unknown.- Returns:
- int
 
- 
getLocationDescription copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
- Parameters:
- key-
- Returns:
- InputLocation
 
- 
getLocations- Returns:
- Map
 
- 
setLocationDescription copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
- setLocationin interface- InputLocationTracker
- Parameters:
- key-
- location-
 
- 
setOtherLocation- Parameters:
- key-
- location-
 
- 
getSourceGet the source field.- Returns:
- InputSource
 
- 
mergepublic static InputLocation merge(InputLocation target, InputLocation source, boolean sourceDominant) Method merge.- Parameters:
- target-
- sourceDominant-
- source-
- Returns:
- InputLocation
 
- 
mergepublic static InputLocation merge(InputLocation target, InputLocation source, Collection<Integer> indices) Method merge.- Parameters:
- target-
- indices-
- source-
- Returns:
- InputLocation
 
- 
setLocations- Parameters:
- locations-
 
- 
toApiLocation
- 
toString
 
-