View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements. See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership. The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License. You may obtain a copy of the License at
9    *
10   * http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied. See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  
20  package org.apache.ws.commons.schema;
21  
22  /**
23   * Allows simple and complex types, groups, and attribute groups from
24   * external schema files to be redefined in the current schema. This
25   * class provides versioning for the schema elements. Represents the
26   * World Wide Web Consortium (W3C) redefine element.
27   */
28  
29  public class XmlSchemaRedefine extends XmlSchemaExternal {
30  
31      /**
32       * Creates new XmlSchemaRedefine
33       */
34      public XmlSchemaRedefine() {
35          items = new XmlSchemaObjectCollection();
36          schemaTypes = new XmlSchemaObjectTable();
37          groups = new XmlSchemaObjectTable();
38          attributeGroups = new XmlSchemaObjectTable();
39      }
40  
41      XmlSchemaObjectTable attributeGroups, groups, schemaTypes;
42  
43      public XmlSchemaObjectTable getAttributeGroup() {
44          return attributeGroups;
45      }
46  
47      public XmlSchemaObjectTable getGroup() {
48          return groups;
49      }
50  
51      XmlSchemaObjectCollection items;
52  
53      public XmlSchemaObjectCollection getItems() {
54          return items;
55      }
56  
57      public XmlSchemaObjectTable getSchemaTypes() {
58          return schemaTypes;
59      }
60  
61  }