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.xerces.xs; 18 19 /** 20 * This interface allows one to retrieve an instance of <code>XSLoader</code>. 21 * This interface should be implemented on the same object that implements 22 * DOMImplementation. 23 */ 24 public interface XSImplementation { 25 /** 26 * A list containing the versions of XML Schema documents recognized by 27 * this <code>XSImplemenation</code>. 28 */ 29 public StringList getRecognizedVersions(); 30 31 32 /** 33 * Creates a new XSLoader. The newly constructed loader may then be 34 * configured and used to load XML Schemas. 35 * @param versions A list containing the versions of XML Schema 36 * documents which can be loaded by the <code>XSLoader</code> or 37 * <code>null</code> to permit XML Schema documents of any recognized 38 * version to be loaded by the XSLoader. 39 * @return An XML Schema loader. 40 * @exception XSException 41 * NOT_SUPPORTED_ERR: Raised if the implementation does not support one 42 * of the specified versions. 43 */ 44 public XSLoader createXSLoader(StringList versions) 45 throws XSException; 46 47 } 48