KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > xs > XSWildcard


1 /*
2  * Copyright 2003,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.xerces.xs;
18
19 /**
20  * This interface represents the Wildcard schema component.
21  */

22 public interface XSWildcard extends XSTerm {
23     // Namespace Constraint
24
/**
25      * Namespace Constraint: any namespace is allowed.
26      */

27     public static final short NSCONSTRAINT_ANY = 1;
28     /**
29      * Namespace Constraint: namespaces in the list are not allowed.
30      */

31     public static final short NSCONSTRAINT_NOT = 2;
32     /**
33      * Namespace Constraint: namespaces in the list are allowed.
34      */

35     public static final short NSCONSTRAINT_LIST = 3;
36
37     // Process contents
38
/**
39      * There must be a top-level declaration for the item available, or the
40      * item must have an xsi:type, and the item must be valid as appropriate.
41      */

42     public static final short PC_STRICT = 1;
43     /**
44      * No constraints at all: the item must simply be well-formed XML.
45      */

46     public static final short PC_SKIP = 2;
47     /**
48      * If the item, or any items among its [children] is an element
49      * information item, has a uniquely determined declaration available, it
50      * must be valid with respect to that definition, that is, validate
51      * where you can and do not worry when you cannot.
52      */

53     public static final short PC_LAX = 3;
54
55     /**
56      * Namespace constraint: A constraint type: any, not, list.
57      */

58     public short getConstraintType();
59
60     /**
61      * Namespace constraint: For <code>constraintType</code>
62      * <code>NSCONSTRAINT_LIST</code>, the list contains allowed namespaces.
63      * For <code>constraintType</code> <code>NSCONSTRAINT_NOT</code>, the
64      * list contains disallowed namespaces. For <code>constraintType</code>
65      * <code>NSCONSTRAINT_ANY</code>, the <code>StringList</code> is empty.
66      */

67     public StringList getNsConstraintList();
68
69     /**
70      * [process contents]: one of skip, lax or strict. Valid constants values
71      * are: <code>PC_LAX</code>, <code>PC_SKIP</code> and
72      * <code>PC_STRICT</code>.
73      */

74     public short getProcessContents();
75
76     /**
77      * An [annotation] if it exists, otherwise <code>null</code>.
78      */

79     public XSAnnotation getAnnotation();
80
81 }
82
Popular Tags