KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > generator > sg > ComplexContentSG


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 package org.apache.ws.jaxme.generator.sg;
17
18 import org.xml.sax.Locator JavaDoc;
19 import org.xml.sax.SAXException JavaDoc;
20 import org.apache.ws.jaxme.generator.sg.ParticleSG;
21
22
23 /** Interface of a complex type with a complex content model.
24  */

25 public interface ComplexContentSG {
26     /** <p>Returns the items location in the schema; useful for
27      * error messages.</p>
28      */

29     public Locator JavaDoc getLocator();
30
31     /** <p>Initializes the item.</p>
32      */

33     public void init() throws SAXException JavaDoc;
34     /** Returns, whether the types content model is empty.
35      */

36     public boolean isEmpty();
37     
38     /** Returns, whether the types content model is mixed.
39      */

40     public boolean isMixed();
41     
42     /** Returns the complex types root particle.
43      */

44     public ParticleSG getRootParticle();
45
46     /** Returns a list of all element particles, which are
47      * being generated as properties of the type.
48      */

49     public ParticleSG[] getElementParticles() throws SAXException JavaDoc;
50 }
51
Popular Tags