public class SchemaGenerator extends SchemaOutputResolver
Constructor and Description |
---|
SchemaGenerator(String fileName)
Creates a SchemaGenerator indicating the preferred name of the
generated schema file.
|
SchemaGenerator(String fileName,
File schemaDir)
Creates a SchemaGenerator indicating the preferred name of the
generated schema file and the directory in which is should be stored.
|
Modifier and Type | Method and Description |
---|---|
Result |
createOutput(String namespaceUri,
String defaultFileName)
Called by the schema generation process.
|
void |
generateSchema(Class... classes)
Generates an XML Schema which includes the given classes
|
public SchemaGenerator(String fileName)
fileName
- of the schemapublic void generateSchema(Class... classes) throws JAXBException, IOException
classes
- to include in the schema definitionJAXBException
IOException
public Result createOutput(String namespaceUri, String defaultFileName) throws IOException
createOutput
in class SchemaOutputResolver
IOException
Copyright © 2009–2014 DuraSpace. All rights reserved.