286N/A/*
286N/A * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
286N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
286N/A *
286N/A * This code is free software; you can redistribute it and/or modify it
286N/A * under the terms of the GNU General Public License version 2 only, as
286N/A * published by the Free Software Foundation. Oracle designates this
286N/A * particular file as subject to the "Classpath" exception as provided
286N/A * by Oracle in the LICENSE file that accompanied this code.
286N/A *
286N/A * This code is distributed in the hope that it will be useful, but WITHOUT
286N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
286N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
286N/A * version 2 for more details (a copy is included in the LICENSE file that
286N/A * accompanied this code).
286N/A *
286N/A * You should have received a copy of the GNU General Public License version
286N/A * 2 along with this work; if not, write to the Free Software Foundation,
286N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
286N/A *
286N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
286N/A * or visit www.oracle.com if you need additional information or have any
286N/A * questions.
286N/A */
286N/A
286N/Apackage javax.xml.transform;
286N/A
286N/A/**
286N/A * This interface is primarily for the purposes of reporting where
286N/A * an error occurred in the XML source or transformation instructions.
286N/A */
286N/Apublic interface SourceLocator {
286N/A
286N/A /**
286N/A * Return the public identifier for the current document event.
286N/A *
286N/A * <p>The return value is the public identifier of the document
286N/A * entity or of the external parsed entity in which the markup that
286N/A * triggered the event appears.</p>
286N/A *
286N/A * @return A string containing the public identifier, or
286N/A * null if none is available.
286N/A * @see #getSystemId
286N/A */
286N/A public String getPublicId();
286N/A
286N/A /**
286N/A * Return the system identifier for the current document event.
286N/A *
286N/A * <p>The return value is the system identifier of the document
286N/A * entity or of the external parsed entity in which the markup that
286N/A * triggered the event appears.</p>
286N/A *
286N/A * <p>If the system identifier is a URL, the parser must resolve it
286N/A * fully before passing it to the application.</p>
286N/A *
286N/A * @return A string containing the system identifier, or null
286N/A * if none is available.
286N/A * @see #getPublicId
286N/A */
286N/A public String getSystemId();
286N/A
286N/A /**
286N/A * Return the line number where the current document event ends.
286N/A *
286N/A * <p><strong>Warning:</strong> The return value from the method
286N/A * is intended only as an approximation for the sake of error
286N/A * reporting; it is not intended to provide sufficient information
286N/A * to edit the character content of the original XML document.</p>
286N/A *
286N/A * <p>The return value is an approximation of the line number
286N/A * in the document entity or external parsed entity where the
286N/A * markup that triggered the event appears.</p>
286N/A *
286N/A * @return The line number, or -1 if none is available.
286N/A * @see #getColumnNumber
286N/A */
286N/A public int getLineNumber();
286N/A
286N/A /**
286N/A * Return the character position where the current document event ends.
286N/A *
286N/A * <p><strong>Warning:</strong> The return value from the method
286N/A * is intended only as an approximation for the sake of error
286N/A * reporting; it is not intended to provide sufficient information
286N/A * to edit the character content of the original XML document.</p>
286N/A *
286N/A * <p>The return value is an approximation of the column number
286N/A * in the document entity or external parsed entity where the
286N/A * markup that triggered the event appears.</p>
286N/A *
286N/A * @return The column number, or -1 if none is available.
286N/A * @see #getLineNumber
286N/A */
286N/A public int getColumnNumber();
286N/A}