01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.apache.xerces.xs;
19:
20: /**
21: * This interface allows one to retrieve an instance of <code>XSLoader</code>.
22: * This interface should be implemented on the same object that implements
23: * DOMImplementation.
24: */
25: public interface XSImplementation {
26: /**
27: * A list containing the versions of XML Schema documents recognized by
28: * this <code>XSImplemenation</code>.
29: */
30: public StringList getRecognizedVersions();
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: }
|