| Modifier and Type | Field and Description |
|---|---|
(package private) org.xml.sax.ErrorHandler |
eh |
private org.xml.sax.InputSource |
in |
(package private) XMLReaderCreator |
xrc |
| Constructor and Description |
|---|
SAXParseable(org.xml.sax.InputSource in,
org.xml.sax.ErrorHandler eh) |
SAXParseable(org.xml.sax.InputSource in,
org.xml.sax.ErrorHandler eh,
XMLReaderCreator xrc) |
| Modifier and Type | Method and Description |
|---|---|
private static org.xml.sax.InputSource |
makeInputSource(org.xml.sax.XMLReader xr,
java.lang.String systemId) |
ParsedPattern |
parse(SchemaBuilder schemaBuilder)
Parses this
Parseable object into a RELAX NG pattern. |
ParsedPattern |
parseExternal(java.lang.String uri,
SchemaBuilder schemaBuilder,
Scope s,
java.lang.String inheritedNs)
Called from
SchemaBuilder in response to
SchemaBuilder.makeExternalRef(Parseable, String, String, Scope, Location, Annotations)
to parse the referenced grammar. |
ParsedPattern |
parseInclude(java.lang.String uri,
SchemaBuilder schemaBuilder,
IncludedGrammar g,
java.lang.String inheritedNs)
Called from
Include in response to
Include.endInclude(Parseable, String, String, Location, Annotations)
to parse the included grammar. |
(package private) static BuildException |
toBuildException(org.xml.sax.SAXException e) |
private final org.xml.sax.InputSource in
final XMLReaderCreator xrc
final org.xml.sax.ErrorHandler eh
public SAXParseable(org.xml.sax.InputSource in,
org.xml.sax.ErrorHandler eh,
XMLReaderCreator xrc)
public SAXParseable(org.xml.sax.InputSource in,
org.xml.sax.ErrorHandler eh)
public ParsedPattern parse(SchemaBuilder schemaBuilder) throws BuildException, IllegalSchemaException
ParseableParseable object into a RELAX NG pattern.parse in interface ParseableschemaBuilder - The builder of the schema object model. This object
dictates how the actual pattern is constructed.BuildExceptionIllegalSchemaExceptionpublic ParsedPattern parseInclude(java.lang.String uri, SchemaBuilder schemaBuilder, IncludedGrammar g, java.lang.String inheritedNs) throws BuildException, IllegalSchemaException
ParseableInclude in response to
Include.endInclude(Parseable, String, String, Location, Annotations)
to parse the included grammar.parseInclude in interface Parseableg - receives the events from the included grammar.BuildExceptionIllegalSchemaExceptionpublic ParsedPattern parseExternal(java.lang.String uri, SchemaBuilder schemaBuilder, Scope s, java.lang.String inheritedNs) throws BuildException, IllegalSchemaException
ParseableSchemaBuilder in response to
SchemaBuilder.makeExternalRef(Parseable, String, String, Scope, Location, Annotations)
to parse the referenced grammar.parseExternal in interface ParseableschemaBuilder - receives the events from the referenced grammar.BuildExceptionIllegalSchemaExceptionprivate static org.xml.sax.InputSource makeInputSource(org.xml.sax.XMLReader xr,
java.lang.String systemId)
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOExceptionorg.xml.sax.SAXExceptionstatic BuildException toBuildException(org.xml.sax.SAXException e)