Package org.apache.struts2.util.location
Interface Location
- All Known Implementing Classes:
- LocationImpl
public interface Location
A location in a resource. The location is composed of the URI of the resource, and
 the line and column numbers within that resource (when available), along with a description.
 
 Locations are mostly provided by Locatables objects.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionintGet the column number of this locationGet the description of this locationintGet the line number of this locationgetSnippet(int padding) Gets a source code snippet with the default paddinggetURI()Get the URI of this location
- 
Field Details- 
UNKNOWNConstant for unknown locations.
 
- 
- 
Method Details- 
getDescriptionString getDescription()Get the description of this location- Returns:
- the description (can be null)
 
- 
getURIString getURI()Get the URI of this location- Returns:
- the URI (nullif unknown).
 
- 
getLineNumberint getLineNumber()Get the line number of this location- Returns:
- the line number (-1if unknown)
 
- 
getColumnNumberint getColumnNumber()Get the column number of this location- Returns:
- the column number (-1if unknown)
 
- 
getSnippetGets a source code snippet with the default padding- Parameters:
- padding- The amount of lines before and after the error to include
- Returns:
- A list of source lines
 
 
-