public class SchemaGenerator extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SchemaGenerator.SchemaVersionConverter
JCommander parameter converter that parses command line string to schema version.
|
| Constructor and Description |
|---|
SchemaGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
genTml(Collection<String> classes,
SchemaVersion schemaVersion,
OutputStream output,
String classpath)
Generate Tesla schema file (TML) from Java classes that follow Java Bean convention.
|
static void |
main(String[] args) |
public static void genTml(Collection<String> classes, SchemaVersion schemaVersion, OutputStream output, String classpath) throws IOException, TeslaSchemaException, ClassNotFoundException, JAXBException
classes - The full names of classes that generate schema from.schemaVersion - The version of generated schema.output - The output schema file path.classpath - The Java class path of the classes listed in parameter classes. Tesla compiler will search classes
from both system class path and the class paths listed in this parameter.IOException - On IO errors.TeslaSchemaException - On Tesla schema errors.ClassNotFoundException - If the class is not found.JAXBException - When there is a JAXB error.Copyright © 2015. All Rights Reserved.