Class LocationImpl

java.lang.Object
ch.tocco.nice2.model.base.unmarshal.LocationImpl
All Implemented Interfaces:
Location, Serializable

public class LocationImpl extends Object implements Location, Serializable
See Also:
  • Constructor Details

    • LocationImpl

      public LocationImpl(URI resource, int line, int column)
    • LocationImpl

      public LocationImpl(URI resource, Locator locator)
    • LocationImpl

      public LocationImpl(Location orig)
  • Method Details

    • getResource

      public URI getResource()
      Description copied from interface: Location
      Get the URI of the resource.
      Specified by:
      getResource in interface Location
      Returns:
      The URI of the resource or null, if not known.
    • getLine

      public int getLine()
      Description copied from interface: Location
      Get the line number.
      Specified by:
      getLine in interface Location
      Returns:
      The line number or -1, if not known.
    • getColumn

      public int getColumn()
      Description copied from interface: Location
      Get the column number.
      Specified by:
      getColumn in interface Location
      Returns:
      The column number or -1, if not known.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public static String toString(Location loc)