public class SchemaGenerator extends Object
| Constructor and Description |
|---|
SchemaGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static com.github.fge.jsonschema.main.JsonSchema |
generateJsonSchema(JsonSchemaExternalType jsonTypeDefinition) |
static Schema |
generateXmlSchema(ResourceLoader resourceLoader,
XmlSchemaExternalType xmlTypeDefinition) |
static boolean |
isJsonSchema(String schema) |
static boolean |
isXmlSchema(String schema) |
public static Schema generateXmlSchema(ResourceLoader resourceLoader, XmlSchemaExternalType xmlTypeDefinition) throws SAXException
SAXExceptionpublic static com.github.fge.jsonschema.main.JsonSchema generateJsonSchema(JsonSchemaExternalType jsonTypeDefinition) throws IOException, com.github.fge.jsonschema.core.exceptions.ProcessingException
IOExceptioncom.github.fge.jsonschema.core.exceptions.ProcessingExceptionpublic static boolean isJsonSchema(String schema)
public static boolean isXmlSchema(String schema)
Copyright © 2017. All rights reserved.