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;
17
18 import javax.xml.namespace.QName;
19
20 /**
21 * Represents a Schema annotation.
22 */
23 public interface SchemaAnnotation extends SchemaComponent
24 {
25 /**
26 * Retrieves all application information items from this annotation
27 */
28 public XmlObject[] getApplicationInformation();
29
30 /**
31 * Retrieves all document information items from this annotation
32 */
33 public XmlObject[] getUserInformation();
34
35 /**
36 * Retrieves all attributes that are is a namespace other than
37 * http://www.w3.org/2001/XMLSchema
38 * from the annotation element and from the enclosing Schema component
39 */
40 public Attribute[] getAttributes();
41
42 /**
43 * Represents an attribute instance
44 */
45 public static interface Attribute
46 {
47 /**
48 * Returns the name of the attribute
49 */
50 QName getName();
51
52 /**
53 * Returns the value of the attribute
54 */
55 String getValue();
56
57 /**
58 * In case the value of this attribute is a QName,
59 * returns the URI to which the prefix in the value is bound
60 */
61 String getValueUri();
62 }
63 }