public class RelaxNGDataModel extends Object
Modifier and Type | Method and Description |
---|---|
SchemaDescription |
constructXMPSchema(SchemaGenerationHandler handler)
Gets the schema which is represented by this RelaxNGDataModel
|
static RelaxNGDataModel |
newInstance(InputSource is,
EntityResolver er)
Construct a RelaxNGDataModel which models the input RelaxNG schema.
|
static RelaxNGDataModel |
newInstance(InputSource is,
EntityResolver er,
ErrorHandler eh)
Construct a RelaxNGDataModel which models the input RelaxNG schema.
|
static RelaxNGDataModel |
newInstance(URI rngFile,
EntityResolver er)
Construct a RelaxNGDataModel which models the input RelaxNG schema.
|
static RelaxNGDataModel |
newInstance(URI rngFile,
EntityResolver er,
ErrorHandler eh)
Construct a RelaxNGDataModel which models the input RelaxNG schema.
|
public static RelaxNGDataModel newInstance(URI rngFile, EntityResolver er) throws RNGParseException, RNGInvalidSchemaException, MalformedURLException, IOException
rngFile
- File representing the RelaxNG schemaer
- A RelaxNG schema references and includes multiple other files. This enity resolver should define how
these dependecies should be located by RelaxNG schema parser.RNGParseException
- If a exception occured whileRNGInvalidSchemaException
- If the input RelaxNg schema voilates RNG specIOException
- if rngFile cannot be resolved or loadedMalformedURLException
- If URI is malformedpublic static RelaxNGDataModel newInstance(URI rngFile, EntityResolver er, ErrorHandler eh) throws RNGInvalidSchemaException, MalformedURLException, IOException
rngFile
- File representing the RelaxNG schemaer
- A RelaxNG schema references and includes multiple other files. This entity resolver should define how
these dependencies should be located by RelaxNG schema parser.eh
- ErrorHandler to handle error call backs generated by RelaxNG schema parserRNGInvalidSchemaException
- If the input RelaxNg schema violates RNG specMalformedURLException
- If URI is malformedIOException
- if rngFile cannot be resolved or loadedpublic static RelaxNGDataModel newInstance(InputSource is, EntityResolver er) throws RNGInvalidSchemaException
is
- InputSource representing the RelaxNG schemaer
- A RelaxNG schema references and includes multiple other files. This entity resolver should define how
these dependencies should be located by RelaxNG schema parser.RNGInvalidSchemaException
- If the input RelaxNg schema violates RNG specpublic static RelaxNGDataModel newInstance(InputSource is, EntityResolver er, ErrorHandler eh) throws RNGInvalidSchemaException
is
- InputSource representing the RelaxNG schemaer
- A RelaxNG schema references and includes multiple other files. This enity resolver should define how
these dependecies should be located by RelaxNG schema parser.eh
- ErrorHandler to handle error call backs generated by RelaxNG schema parserRNGInvalidSchemaException
- If the input RelaxNg schema voilates RNG specpublic SchemaDescription constructXMPSchema(SchemaGenerationHandler handler) throws RNGParseException, XMPSchemaException
handler
- This handler provides notifications for various events such as start, end of parsing a ref, start of
property parsing, errors recieved while parsing property. This should not be null.RNGParseException
- If a problem occured while traversing RelaxNGDataModel
to form a SchemaDescription
object. This can happen if the input Relax NG schema does not correctly model a XMP schema.XMPSchemaException
- Exception thrown for SchemaDescription
is propogatedCopyright © 2010 - 2020 Adobe. All Rights Reserved