KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > xs > xml > XsTElement


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.xml;
18
19 import org.xml.sax.SAXException JavaDoc;
20
21
22 /** <p>Implementation of the <code>xs:element</code> type,
23  * as specified by the following:
24  * <pre>
25  * <xs:complexType name="element" abstract="true">
26  * <xs:annotation>
27  * <xs:documentation>
28  * The element element can be used either
29  * at the top level to define an element-type binding globally,
30  * or within a content model to either reference a globally-defined
31  * element or type or declare an element-type binding locally.
32  * The ref form is not allowed at the top level.
33  * </xs:documentation>
34  * </xs:annotation>
35  * <xs:complexContent>
36  * <xs:extension base="xs:annotated">
37  * <xs:sequence>
38  * <xs:choice minOccurs="0">
39  * <xs:element name="simpleType" type="xs:localSimpleType"/>
40  * <xs:element name="complexType" type="xs:localComplexType"/>
41  * </xs:choice>
42  * <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/>
43  * </xs:sequence>
44  * <xs:attributeGroup ref="xs:defRef"/>
45  * <xs:attribute name="type" type="xs:QName"/>
46  * <xs:attribute name="substitutionGroup" type="xs:QName"/>
47  * <xs:attributeGroup ref="xs:occurs"/>
48  * <xs:attribute name="default" type="xs:string"/>
49  * <xs:attribute name="fixed" type="xs:string"/>
50  * <xs:attribute name="nillable" type="xs:boolean" use="optional" default="false"/>
51  * <xs:attribute name="abstract" type="xs:boolean" use="optional" default="false"/>
52  * <xs:attribute name="final" type="xs:derivationSet"/>
53  * <xs:attribute name="block" type="xs:blockSet"/>
54  * <xs:attribute name="form" type="xs:formChoice"/>
55  * </xs:extension>
56  * </xs:complexContent>
57  * </xs:complexType>
58  * </pre></p>
59  *
60  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
61  */

62 public interface XsTElement extends XsTAnnotated, XsAGDefRef, XsAGOccurs, XsGIdentityConstraint {
63   public XsTLocalSimpleType createSimpleType() throws SAXException JavaDoc;
64   public XsTLocalSimpleType getSimpleType();
65
66   public XsTLocalComplexType createComplexType() throws SAXException JavaDoc;
67   public XsTLocalComplexType getComplexType();
68
69   public void setType(XsQName pType) throws SAXException JavaDoc;
70   public XsQName getType();
71
72   public void setSubstitutionGroup(XsQName pSubstitutionGroup) throws SAXException JavaDoc;
73   public XsQName getSubstitutionGroup();
74
75   public void setDefault(String JavaDoc pDefault);
76   public String JavaDoc getDefault();
77
78   public void setFixed(String JavaDoc pFixed);
79   public String JavaDoc getFixed();
80
81   public void setNillable(boolean pNillable);
82   public boolean getNillable();
83
84   public void setAbstract(boolean pAbstract);
85   public boolean getAbstract();
86
87   public void setFinal(XsDerivationSet pFinal);
88   public XsDerivationSet getFinal();
89
90   public void setBlock(XsBlockSet pBlock);
91   public XsBlockSet getBlock();
92
93   public void setForm(XsFormChoice pForm);
94   public XsFormChoice getForm();
95
96   public boolean isGlobal();
97 }
98
Popular Tags