Interface IResourceLocation

All Known Subinterfaces:
IMetaschemaData
All Known Implementing Classes:
SimpleResourceLocation, XmlSchemaContentValidator.XmlValidationFinding

public interface IResourceLocation
Represents a location within a resource.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Get the zero-based byte offset for a location within a resource.
    long
    Get the zero-based character offset for a location within a resource.
    int
    Get the line column for a location within a resource.
    int
    Get the line for a location within a resource.
  • Method Details

    • getLine

      int getLine()
      Get the line for a location within a resource.
      Returns:
      the line number or -1 if unknown
    • getColumn

      int getColumn()
      Get the line column for a location within a resource.
      Returns:
      the column number or -1 if unknown
    • getCharOffset

      long getCharOffset()
      Get the zero-based character offset for a location within a resource.
      Returns:
      the character offset or -1 if unknown
    • getByteOffset

      long getByteOffset()
      Get the zero-based byte offset for a location within a resource.
      Returns:
      the byte offset or -1 if unknown