01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19: package org.apache.axis2.databinding.utils.reader;
20:
21: import org.apache.axis2.databinding.utils.Constants;
22:
23: import javax.xml.namespace.NamespaceContext;
24: import javax.xml.stream.XMLStreamReader;
25:
26: public interface ADBXMLStreamReader extends XMLStreamReader, Constants {
27:
28: // this will help to handle Text within the current element.
29: // user should pass the element text to the property list as this
30: // ELEMENT_TEXT as the key. This key deliberately has a space in it
31: // so that it is not a valid XML name
32: static final String ELEMENT_TEXT = "Element Text";
33:
34: /** Extra method to query the state of the pullparser */
35: boolean isDone();
36:
37: /** add the parent namespace context to this parser */
38: void addNamespaceContext(NamespaceContext nsContext);
39:
40: /**
41: * Initiate the parser - this will do whatever the needed tasks to initiate the parser and must
42: * be called before attempting any specific parsing using this parser
43: */
44: void init();
45: }
|