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 * Allows simple and complex types, groups, and attribute groups from 21 * external schema files to be redefined in the current schema. This 22 * class provides versioning for the schema elements. Represents the 23 * World Wide Web Consortium (W3C) redefine element. 24 */ 25 26 public class XmlSchemaRedefine extends XmlSchemaExternal { 27 28 /** 29 * Creates new XmlSchemaRedefine 30 */ 31 public XmlSchemaRedefine() { 32 items = new XmlSchemaObjectCollection(); 33 schemaTypes = new XmlSchemaObjectTable(); 34 groups = new XmlSchemaObjectTable(); 35 attributeGroups = new XmlSchemaObjectTable(); 36 } 37 38 XmlSchemaObjectTable attributeGroups, groups, schemaTypes; 39 40 public XmlSchemaObjectTable getAttributeGroup() { 41 return attributeGroups; 42 } 43 44 public XmlSchemaObjectTable getGroup() { 45 return groups; 46 } 47 48 XmlSchemaObjectCollection items; 49 50 public XmlSchemaObjectCollection getItems() { 51 return items; 52 } 53 54 public XmlSchemaObjectTable getSchemaTypes() { 55 return schemaTypes; 56 } 57 58 }