public abstract class SchemaOutputResolver extends Object
这个抽象类的实现必须由调用应用程序来生成模式。
这是一个类,而不是一个接口,以便允许未来版本的发展,而不破坏兼容性。
Constructor and Description |
---|
SchemaOutputResolver() |
public abstract Result createOutput(String namespaceUri, String suggestedFileName) throws IOException
Result
对象。
对于任何给定的命名空间,这种方法仅被调用一次。换句话说,在一个命名空间中的所有组件都写入相同的schema文件。
namespaceUri
的命名空间URI的架构声明。可以是空字符串,但不能为空。
suggestedFileName
- JAXB实现生成一个唯一的文件名(如“schema1 .xsd”)为调用者的便利。这个名字可以用于模式的文件名,或者可以忽略这个名字,拿出自己的名字。这只是一个提示。
Result
对象封装模式的实际目的。如果
Result
对象有一个系统的ID,它必须是一个绝对的系统ID的系统ID相对由调用者和用于< xs:进口>报表。如果
Result
对象没有一个系统的ID,一个命名空间URI模式产生,但它不会明确<< xs:进口>从其他模式。如果
null
返回,这个命名空间URI架构生成将被跳过。
IOException
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.