01: package net.sf.saxon.event;
02:
03: /**
04: * LocationProvider: this is a marker interface used to identify an object that
05: * provides the location of elements in a source document or instructions in a stylesheet
06: * or query. A locationProvider may be passed down the Receiver pipeline as part of the
07: * PipelineConfiguration object; on the input pipeline, this will be a {@link SaxonLocator} object,
08: * on the output pipeline, it will be a {@link net.sf.saxon.instruct.LocationMap}
09: */
10:
11: public interface LocationProvider {
12:
13: public String getSystemId(int locationId);
14:
15: public int getLineNumber(int locationId);
16: }
17:
18: //
19: // The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
20: // you may not use this file except in compliance with the License. You may obtain a copy of the
21: // License at http://www.mozilla.org/MPL/
22: //
23: // Software distributed under the License is distributed on an "AS IS" basis,
24: // WITHOUT WARRANTY OF ANY KIND, either express or implied.
25: // See the License for the specific language governing rights and limitations under the License.
26: //
27: // The Original Code is: all this file.
28: //
29: // The Initial Developer of the Original Code is Michael H. Kay
30: //
31: // Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
32: //
33: // Contributor(s): none.
34: //
|