| Modifier and Type | Class and Description |
|---|---|
static class |
SchemaBuilder.SchemaLanguage
Language of the schema files.
|
| Modifier and Type | Field and Description |
|---|---|
private static Logger |
LOG
Class logger.
|
| Modifier | Constructor and Description |
|---|---|
private |
SchemaBuilder()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Schema |
buildSchema(SchemaBuilder.SchemaLanguage lang,
File... schemaFilesOrDirectories)
Builds a schema from the given schema sources.
|
static Schema |
buildSchema(SchemaBuilder.SchemaLanguage lang,
InputStream... schemaSources)
Builds a schema from the given schema sources.
|
private static Schema |
buildSchema(SchemaBuilder.SchemaLanguage lang,
List<? extends Source> schemaSources)
Builds a schema from the given schema sources.
|
static Schema |
buildSchema(SchemaBuilder.SchemaLanguage lang,
Resource... schemaSources)
Builds a schema from the given schema sources.
|
static Schema |
buildSchema(SchemaBuilder.SchemaLanguage lang,
String... schemaFilesOrDirectories)
Builds a schema from the given schema sources.
|
private static void |
getSchemaFiles(SchemaBuilder.SchemaLanguage lang,
List<File> accumulatedSchemaFiles,
File... schemaFilesOrDirectories)
Gets all of the schema files in the given set of readable files, directories or subdirectories.
|
private static final Logger LOG
@Nonnull public static Schema buildSchema(@Nonnull SchemaBuilder.SchemaLanguage lang, @Nonnull@NotEmpty@NullableElements 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 schema@Nonnull public static Schema buildSchema(@Nonnull SchemaBuilder.SchemaLanguage lang, @Nonnull@NotEmpty@NullableElements 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 schema@Nonnull public static Schema buildSchema(@Nonnull SchemaBuilder.SchemaLanguage lang, @Nonnull@NotEmpty@NullableElements Resource... schemaSources) throws SAXException
lang - schema languageschemaSources - schema source resourcesSAXException - thrown if there is a problem converting the schema sources in to a schema@Nonnull public static Schema buildSchema(@Nonnull SchemaBuilder.SchemaLanguage lang, @Nonnull@NotEmpty@NullableElements InputStream... schemaSources) throws SAXException
lang - schema languageschemaSources - schema sourcesSAXException - thrown if there is a problem converting the schema sources in to a schemaprivate static void getSchemaFiles(@Nonnull SchemaBuilder.SchemaLanguage lang, @Nonnull List<File> accumulatedSchemaFiles, @Nonnull File... schemaFilesOrDirectories)
lang - schema languageschemaFilesOrDirectories - files and directories which may contain schema filesaccumulatedSchemaFiles - list that accumulates the schema files@Nonnull private static Schema buildSchema(@Nonnull SchemaBuilder.SchemaLanguage lang, @Nonnull@NotEmpty@NullableElements List<? extends Source> schemaSources) throws SAXException
lang - schema languageschemaSources - schema sourcesSAXException - thrown if there is a problem converting the schema sources in to a schemaCopyright © 1999-2013. All Rights Reserved.