1 /* 2 * Copyright 2001-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.axis.schema; 18 19 import org.apache.axis.encoding.TypeMappingImpl; 20 21 import javax.xml.namespace.QName; 22 import java.io.Serializable; 23 24 /** 25 * The SchemaVersion interface allows us to abstract out the differences 26 * between the 1999, 2000, and 2001 versions of XML Schema. 27 * 28 * @author Glen Daniels (gdaniels@apache.org) 29 */ 30 public interface SchemaVersion extends Serializable { 31 public static SchemaVersion SCHEMA_1999 = new SchemaVersion1999(); 32 public static SchemaVersion SCHEMA_2000 = new SchemaVersion2000(); 33 public static SchemaVersion SCHEMA_2001 = new SchemaVersion2001(); 34 35 /** 36 * Get the appropriate QName for the "null"/"nil" attribute for this 37 * Schema version. 38 * @return the appropriate "null"/"nil" QName 39 */ 40 public QName getNilQName(); 41 42 /** 43 * The XSI URI 44 * @return the XSI URI 45 */ 46 public String getXsiURI(); 47 48 /** 49 * The XSD URI 50 * @return the XSD URI 51 */ 52 public String getXsdURI(); 53 54 /** 55 * Register the schema specific type mappings 56 */ 57 public void registerSchemaSpecificTypes(TypeMappingImpl tm); 58 } 59