View Javadoc

1   /*
2    * Copyright 2004,2007 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.commons.schema;
18  
19  /**
20   * Class for attribute groups. Groups a set of attribute declarations
21   * so that they can be incorporated as a group into complex type
22   * definitions. Represents the World Wide Web Consortium (W3C)
23   * attributeGroup element.
24   */
25  
26  public class XmlSchemaAttributeGroup extends XmlSchemaAnnotated {
27  
28      /**
29       * Creates new XmlSchemaAttributeGroup
30       */
31      public XmlSchemaAttributeGroup() {
32          attributes = new XmlSchemaObjectCollection();
33      }
34  
35      XmlSchemaAnyAttribute anyAttribute;
36  
37      public XmlSchemaAnyAttribute getAnyAttribute() {
38          return this.anyAttribute;
39      }
40  
41      public void setAnyAttribute(XmlSchemaAnyAttribute anyAttribute) {
42          this.anyAttribute = anyAttribute;
43      }
44  
45      XmlSchemaObjectCollection attributes;
46  
47      public XmlSchemaObjectCollection getAttributes() {
48          return this.attributes;
49      }
50  
51      public void setAttributes(XmlSchemaObjectCollection attributes) {
52          this.attributes = attributes;
53      }
54  
55      String name;
56  
57      public String getName() {
58          return this.name;
59      }
60  
61      public void setName(String name) {
62          this.name = name;
63      }
64  }