KickJava   Java API By Example, From Geeks To Geeks.

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


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
20 /** <p>Interface of <code>xs:attrDecls</code>, with the
21  * following specification:
22  * <pre>
23  * &lt;xs:group name="attrDecls"&gt;
24  * &lt;xs:sequence&gt;
25  * &lt;xs:choice minOccurs="0" maxOccurs="unbounded"&gt;
26  * &lt;xs:element name="attribute" type="xs:attribute"/&gt;
27  * &lt;xs:element name="attributeGroup" type="xs:attributeGroupRef"/&gt;
28  * &lt;/xs:choice&gt;
29  * &lt;xs:element ref="xs:anyAttribute" minOccurs="0"/&gt;
30  * &lt;/xs:sequence&gt;
31  * &lt;/xs:group&gt;
32  * </pre></p>
33  *
34  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
35  */

36 public interface XsGAttrDecls {
37   /** <p>Creates a new instance of {@link XsTAttribute}.</p>
38    */

39   public XsTAttribute createAttribute();
40
41   /** <p>Returns an array of all attributes created by
42    * {@link #createAttribute()}.</p>
43    */

44   public XsTAttribute[] getAttributes();
45
46   /** <p>Creates a new instance of {@link XsTAttributeGroup}.</p>
47    */

48   public XsTAttributeGroupRef createAttributeGroup();
49
50   /** <p>Returns an array of all attribute groups created by
51    * {@link #createAttributeGroup()};
52    */

53   public XsTAttributeGroupRef[] getAttributeGroups();
54
55   /** <p>Creates a new instance of {@link XsTWildcard}.</p>
56    */

57   public XsTWildcard createAnyAttribute();
58
59   /** <p>Returns the instance created by {@link #createAnyAttribute()},
60    * or null, if the method wasn't called.</p>
61    */

62   public XsTWildcard getAnyAttribute();
63
64   /** <p>Returns all objects created by {@link #createAttribute()},
65    * {@link #createAttributeGroup()}, or {@link #createAnyAttribute()},
66    * in the order of the corresponding method calls.</p>
67    */

68   public Object JavaDoc[] getAllAttributes();
69 }
70
Popular Tags