public class RelaxNGDataModel
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
SchemaDescription |
constructXMPSchema(SchemaGenerationHandler handler)
Gets the schema which is represented by this RelaxNGDataModel
|
static RelaxNGDataModel |
newInstance(org.xml.sax.InputSource is,
org.xml.sax.EntityResolver er)
Construct a RelaxNGDataModel which models the input RelaxNG schema.
|
static RelaxNGDataModel |
newInstance(org.xml.sax.InputSource is,
org.xml.sax.EntityResolver er,
org.xml.sax.ErrorHandler eh)
Construct a RelaxNGDataModel which models the input RelaxNG schema.
|
static RelaxNGDataModel |
newInstance(java.net.URI rngFile,
org.xml.sax.EntityResolver er)
Construct a RelaxNGDataModel which models the input RelaxNG schema.
|
static RelaxNGDataModel |
newInstance(java.net.URI rngFile,
org.xml.sax.EntityResolver er,
org.xml.sax.ErrorHandler eh)
Construct a RelaxNGDataModel which models the input RelaxNG schema.
|
public static RelaxNGDataModel newInstance(java.net.URI rngFile, org.xml.sax.EntityResolver er) throws RNGParseException, RNGInvalidSchemaException, java.net.MalformedURLException, java.io.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 specjava.io.IOException
- if rngFile cannot be resolved or loadedjava.net.MalformedURLException
- If URI is malformedpublic static RelaxNGDataModel newInstance(java.net.URI rngFile, org.xml.sax.EntityResolver er, org.xml.sax.ErrorHandler eh) throws RNGInvalidSchemaException, java.net.MalformedURLException, java.io.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 specjava.net.MalformedURLException
- If URI is malformedjava.io.IOException
- if rngFile cannot be resolved or loadedpublic static RelaxNGDataModel newInstance(org.xml.sax.InputSource is, org.xml.sax.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(org.xml.sax.InputSource is, org.xml.sax.EntityResolver er, org.xml.sax.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 propogated"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"