KickJava   Java API By Example, From Geeks To Geeks.

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


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 Model Group schema component.
21  */

22 public interface XSModelGroup extends XSTerm {
23     // Content model compositors
24
/**
25      * This constant value signifies a sequence operator.
26      */

27     public static final short COMPOSITOR_SEQUENCE = 1;
28     /**
29      * This constant value signifies a choice operator.
30      */

31     public static final short COMPOSITOR_CHOICE = 2;
32     /**
33      * This content model represents a simplified version of the SGML
34      * &-Connector and is limited to the top-level of any content model.
35      * No element in the all content model may appear more than once.
36      */

37     public static final short COMPOSITOR_ALL = 3;
38
39     /**
40      * [compositor]: one of all, choice or sequence. The valid constant values
41      * are:
42      * <code>COMPOSITOR_SEQUENCE, COMPOSITOR_CHOICE, COMPOSITOR_ALL</code>.
43      */

44     public short getCompositor();
45
46     /**
47      * A list of [particles] if it exists, otherwise an empty
48      * <code>XSObjectList</code>.
49      */

50     public XSObjectList getParticles();
51
52     /**
53      * An [annotation] if it exists, otherwise <code>null</code>.
54      */

55     public XSAnnotation getAnnotation();
56
57 }
58
Popular Tags