Debian Codegraph @

net/sf/saxon/pull/UnfailingPullProvider.java

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2018 Saxonica Limited.
3 // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
6 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7
8 package net.sf.saxon.pull;
9
10 import net.sf.saxon.expr.parser.Location;
11 import net.sf.saxon.om.AttributeCollection;
12 import net.sf.saxon.om.NamespaceBinding;
13 import net.sf.saxon.om.NodeName;
14 import net.sf.saxon.trans.XPathException;
15 import net.sf.saxon.type.SchemaType;
16 import net.sf.saxon.value.AtomicValue;
17
18 import java.util.List;
19
20 /**
21 * PullProvider is Saxon's pull-based interface for reading XML documents and XDM sequences.
22 * A PullProvider can deliver any sequence of nodes or atomic values.
23 *
24 * <p>An {@code UnfailingPullProvider} is a subtype where the methods throw no checked Exceptions.</p>
25 */
26
27 public interface UnfailingPullProvider extends PullProvider {
28
29 int next() throws XPathException;
30
31 int current();
32
33 AttributeCollection getAttributes();
34
35 NamespaceBinding[] getNamespaceDeclarations();
36
37 int skipToMatchingEnd();
38
39 void close();
40
41 NodeName getNodeName();
42
43 CharSequence getStringValue() throws XPathException;
44
45 SchemaType getSchemaType();
46
47 AtomicValue getAtomicValue();
48
49 Location getSourceLocator();
50
51 List<UnparsedEntity> getUnparsedEntities();
52
53 }
54