|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.xml.schema.SchemaBuilder
public final class SchemaBuilder
A helper class for building Schema from a set of input.
| Nested Class Summary | |
|---|---|
static class |
SchemaBuilder.SchemaLanguage
Language of the schema files. |
| Method Summary | |
|---|---|
static javax.xml.validation.Schema |
buildSchema(SchemaBuilder.SchemaLanguage lang,
java.io.File schemaFileOrDirectory)
Builds a schema from the given schema source. |
static javax.xml.validation.Schema |
buildSchema(SchemaBuilder.SchemaLanguage lang,
java.io.File[] schemaFilesOrDirectories)
Builds a schema from the given schema sources. |
static javax.xml.validation.Schema |
buildSchema(SchemaBuilder.SchemaLanguage lang,
java.io.InputStream schemaSource)
Builds a schema from the given schema source. |
static javax.xml.validation.Schema |
buildSchema(SchemaBuilder.SchemaLanguage lang,
java.io.InputStream[] schemaSources)
Builds a schema from the given schema sources. |
protected static javax.xml.validation.Schema |
buildSchema(SchemaBuilder.SchemaLanguage lang,
javax.xml.transform.Source[] schemaSources)
Builds a schema from the given schema sources. |
static javax.xml.validation.Schema |
buildSchema(SchemaBuilder.SchemaLanguage lang,
java.lang.String schemaFileOrDirectory)
Builds a schema from the given schema source. |
static javax.xml.validation.Schema |
buildSchema(SchemaBuilder.SchemaLanguage lang,
java.lang.String[] schemaFilesOrDirectories)
Builds a schema from the given schema sources. |
protected static void |
getSchemaFiles(SchemaBuilder.SchemaLanguage lang,
java.io.File[] schemaFilesOrDirectories,
java.util.List<java.io.File> accumulatedSchemaFiles)
Gets all of the schema files in the given set of readable files, directories or subdirectories. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static javax.xml.validation.Schema buildSchema(SchemaBuilder.SchemaLanguage lang,
java.lang.String schemaFileOrDirectory)
throws org.xml.sax.SAXException
lang - schema language, must not be nullschemaFileOrDirectory - file or directory which contains schema sources
org.xml.sax.SAXException - thrown if there is a problem converting the schema sources in to a schema
public static javax.xml.validation.Schema buildSchema(SchemaBuilder.SchemaLanguage lang,
java.lang.String[] schemaFilesOrDirectories)
throws org.xml.sax.SAXException
lang - schema language, must not be nullschemaFilesOrDirectories - files or directories which contains schema sources
org.xml.sax.SAXException - thrown if there is a problem converting the schema sources in to a schema
public static javax.xml.validation.Schema buildSchema(SchemaBuilder.SchemaLanguage lang,
java.io.File schemaFileOrDirectory)
throws org.xml.sax.SAXException
lang - schema language, must not be nullschemaFileOrDirectory - file or directory which contains schema sources
org.xml.sax.SAXException - thrown if there is a problem converting the schema sources in to a schema
public static javax.xml.validation.Schema buildSchema(SchemaBuilder.SchemaLanguage lang,
java.io.File[] schemaFilesOrDirectories)
throws org.xml.sax.SAXException
lang - schema language, must not be nullschemaFilesOrDirectories - files or directories which contains schema sources
org.xml.sax.SAXException - thrown if there is a problem converting the schema sources in to a schema
public static javax.xml.validation.Schema buildSchema(SchemaBuilder.SchemaLanguage lang,
java.io.InputStream schemaSource)
throws org.xml.sax.SAXException
lang - schema language, must not be nullschemaSource - schema source
org.xml.sax.SAXException - thrown if there is a problem converting the schema sources in to a schema
public static javax.xml.validation.Schema buildSchema(SchemaBuilder.SchemaLanguage lang,
java.io.InputStream[] schemaSources)
throws org.xml.sax.SAXException
lang - schema language, must not be nullschemaSources - schema sources
org.xml.sax.SAXException - thrown if there is a problem converting the schema sources in to a schema
protected static void getSchemaFiles(SchemaBuilder.SchemaLanguage lang,
java.io.File[] schemaFilesOrDirectories,
java.util.List<java.io.File> accumulatedSchemaFiles)
lang - schema language, must not be nullschemaFilesOrDirectories - files and directories which may contain schema filesaccumulatedSchemaFiles - list that accumulates the schema files
protected static javax.xml.validation.Schema buildSchema(SchemaBuilder.SchemaLanguage lang,
javax.xml.transform.Source[] schemaSources)
throws org.xml.sax.SAXException
lang - schema language, must not be nullschemaSources - schema sources, must not be null
org.xml.sax.SAXException - thrown if there is a problem converting the schema sources in to a schema
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||