1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package net.sf.stax;
25
26 import java.util.List;
27
28 import org.xml.sax.Locator;
29
30 /***
31 * Interface which exposes id mapping services offered by a StAX event source.
32 *
33 * @author Thomas Down
34 * @author Matthew Pocock
35 * @author Michael Heuer
36 * @version $Revision: 1.3 $ $Date: 2006/01/02 20:37:34 $
37 */
38 public interface StAXContext
39 {
40
41 /***
42 * Return the IdMapper implementation associated with
43 * this context.
44 *
45 * @return the IdMapper implementation associated with
46 * this context
47 */
48 IdMapper getIdMapper();
49
50 /***
51 * Return a list of contexts.
52 *
53 * @return a list of contexts
54 */
55 List getContexts();
56
57 /***
58 * Return the document locator associated with this context.
59 * May be null.
60 *
61 * @return the document locator associated with this context
62 */
63 Locator getLocator();
64
65 /***
66 * Set the document locator associated with this context to <code>locator</code>.
67 *
68 * @param locator document locator
69 */
70 void setLocator(Locator locator);
71 }