| java.lang.Object org.apache.cocoon.util.location.LocationImpl
LocationImpl | public class LocationImpl implements Location,Serializable(Code) | | A simple immutable and serializable implementation of
Location .
since: 2.1.8 version: $Id: LocationImpl.java 446917 2006-09-16 19:10:40Z vgritsenko $ |
LocationImpl | public LocationImpl(String description, String uri)(Code) | | Build a location for a given URI, with unknown line and column numbers.
Parameters: uri - the resource URI |
LocationImpl | public LocationImpl(String description, String uri, int line, int column)(Code) | | Build a location for a given URI and line and columb numbers.
Parameters: uri - the resource URI Parameters: line - the line number (starts at 1) Parameters: column - the column number (starts at 1) |
LocationImpl | public LocationImpl(Location location)(Code) | | Copy constructor.
Parameters: location - the location to be copied |
LocationImpl | public LocationImpl(String description, Location location)(Code) | | Create a location from an existing one, but with a different description
|
get | public static LocationImpl get(Location location)(Code) | | Obtain a LocationImpl from a
Location . If location is
already a LocationImpl , it is returned, otherwise it is copied.
This method is useful when an immutable and serializable location is needed, such as in locatable
exceptions.
Parameters: location - the location an immutable and serializable version of location |
getColumnNumber | public int getColumnNumber()(Code) | | Get the column number of this location
the column number (-1 if unknown) |
getDescription | public String getDescription()(Code) | | Get the description of this location
the description (can be null ) |
getLineNumber | public int getLineNumber()(Code) | | Get the line number of this location
the line number (-1 if unknown) |
getURI | public String getURI()(Code) | | Get the URI of this location
the URI (null if unknown). |
hashCode | public int hashCode()(Code) | | |
|
|