1 /* Copyright 2004 The Apache Software Foundation
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 package org.apache.xmlbeans.xml.stream;
17
18 import java.util.Map;
19 /**
20 * The StartElement interface provides access to information about
21 * start elements
22 *
23 * @since Weblogic XML Input Stream 1.0
24 * @version 1.0
25 * @see org.apache.xmlbeans.xml.stream.AttributeIterator
26 */
27
28 public interface StartElement extends XMLEvent {
29 /**
30 * Returns an AttributeIterator of non-namespace declared attributes
31 */
32 public AttributeIterator getAttributes();
33 /**
34 * Returns an AttributeIterator of namespaces declared in this element
35 */
36 public AttributeIterator getNamespaces();
37 /**
38 * Returns the union of declared attributes and namespaces
39 */
40 public AttributeIterator getAttributesAndNamespaces();
41 /**
42 * Returns the attribute referred to by this name
43 */
44 public Attribute getAttributeByName(XMLName name);
45 /**
46 * Gets the value that the prefix is bound to in the
47 * context of this element. Returns null if
48 * the prefix is not bound in this context
49 */
50 public String getNamespaceUri(String prefix);
51 /**
52 * Gets a java.util.Map from prefixes to URIs in scope for this
53 * element.
54 */
55 public Map getNamespaceMap();
56 }