KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > xs > XSType


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.ws.jaxme.xs;
18
19 import org.apache.ws.jaxme.xs.xml.XsQName;
20 import org.apache.ws.jaxme.xs.xml.XsSchemaHeader;
21 import org.xml.sax.SAXException JavaDoc;
22
23
24 /** <p>Interface of an XML Schema type. Includes complex and simple types.</p>
25  *
26  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
27  */

28 public interface XSType extends XSOpenAttrs {
29   /** <p>Returns the array of annotations.</p>
30    */

31   public XSAnnotation[] getAnnotations();
32
33   /** <p>Returns whether the type is simple or not.</p>
34    */

35   public boolean isSimple();
36
37   /** <p>Returns the simple types information.</p>
38    * @throws IllegalStateException The type is complex.
39    */

40   public XSSimpleType getSimpleType() throws SAXException JavaDoc;
41
42   /** <p>Returns the complex types information.</p>
43    * @throws IllegalStateException The type is simple
44    */

45   public XSComplexType getComplexType() throws SAXException JavaDoc;
46
47   /** <p>Returns whether the type is global or not.</p>
48    */

49   public boolean isGlobal();
50
51   /** <p>Sets whether the type is global or not.</p>
52    */

53   public void setGlobal(boolean pGlobal);
54
55   /** <p>If the type is global: Returns the types name. Otherwise returns
56    * null.</p>
57    */

58   public XsQName getName();
59
60   /** <p>Returns whether the type is a builtin type of XML Schema.</p>
61    */

62   public boolean isBuiltin();
63
64   /** <p>Returns the types syntactical context or null, if no such context
65    * is available.</p>
66    */

67   public XsSchemaHeader getSchemaHeader();
68 }
69
Popular Tags