Modifier and Type | Class and Description |
---|---|
static class |
SchemaBuilder.SchemaLanguage
Language of the schema files.
|
Modifier and Type | Method and Description |
---|---|
static Schema |
buildSchema(SchemaBuilder.SchemaLanguage lang,
File schemaFileOrDirectory)
Builds a schema from the given schema source.
|
static Schema |
buildSchema(SchemaBuilder.SchemaLanguage lang,
File[] schemaFilesOrDirectories)
Builds a schema from the given schema sources.
|
static Schema |
buildSchema(SchemaBuilder.SchemaLanguage lang,
InputStream schemaSource)
Builds a schema from the given schema source.
|
static Schema |
buildSchema(SchemaBuilder.SchemaLanguage lang,
InputStream[] schemaSources)
Builds a schema from the given schema sources.
|
protected static Schema |
buildSchema(SchemaBuilder.SchemaLanguage lang,
Source[] schemaSources)
Builds a schema from the given schema sources.
|
static Schema |
buildSchema(SchemaBuilder.SchemaLanguage lang,
String schemaFileOrDirectory)
Builds a schema from the given schema source.
|
static Schema |
buildSchema(SchemaBuilder.SchemaLanguage lang,
String[] schemaFilesOrDirectories)
Builds a schema from the given schema sources.
|
protected static void |
getSchemaFiles(SchemaBuilder.SchemaLanguage lang,
File[] schemaFilesOrDirectories,
List<File> accumulatedSchemaFiles)
Gets all of the schema files in the given set of readable files, directories or subdirectories.
|
public static Schema buildSchema(SchemaBuilder.SchemaLanguage lang, String schemaFileOrDirectory) throws SAXException
lang
- schema language, must not be nullschemaFileOrDirectory
- file or directory which contains schema sourcesSAXException
- thrown if there is a problem converting the schema sources in to a schemapublic static Schema buildSchema(SchemaBuilder.SchemaLanguage lang, String[] schemaFilesOrDirectories) throws SAXException
lang
- schema language, must not be nullschemaFilesOrDirectories
- files or directories which contains schema sourcesSAXException
- thrown if there is a problem converting the schema sources in to a schemapublic static Schema buildSchema(SchemaBuilder.SchemaLanguage lang, File schemaFileOrDirectory) throws SAXException
lang
- schema language, must not be nullschemaFileOrDirectory
- file or directory which contains schema sourcesSAXException
- thrown if there is a problem converting the schema sources in to a schemapublic static Schema buildSchema(SchemaBuilder.SchemaLanguage lang, File[] schemaFilesOrDirectories) throws SAXException
lang
- schema language, must not be nullschemaFilesOrDirectories
- files or directories which contains schema sourcesSAXException
- thrown if there is a problem converting the schema sources in to a schemapublic static Schema buildSchema(SchemaBuilder.SchemaLanguage lang, InputStream schemaSource) throws SAXException
lang
- schema language, must not be nullschemaSource
- schema sourceSAXException
- thrown if there is a problem converting the schema sources in to a schemapublic static Schema buildSchema(SchemaBuilder.SchemaLanguage lang, InputStream[] schemaSources) throws SAXException
lang
- schema language, must not be nullschemaSources
- schema sourcesSAXException
- thrown if there is a problem converting the schema sources in to a schemaprotected static void getSchemaFiles(SchemaBuilder.SchemaLanguage lang, File[] schemaFilesOrDirectories, List<File> accumulatedSchemaFiles)
lang
- schema language, must not be nullschemaFilesOrDirectories
- files and directories which may contain schema filesaccumulatedSchemaFiles
- list that accumulates the schema filesprotected static Schema buildSchema(SchemaBuilder.SchemaLanguage lang, Source[] schemaSources) throws SAXException
lang
- schema language, must not be nullschemaSources
- schema sources, must not be nullSAXException
- thrown if there is a problem converting the schema sources in to a schemaCopyright © 2018 JBoss by Red Hat. All rights reserved.