Class SAXParseable
- java.lang.Object
-
- org.kohsuke.rngom.rngparser.parse.xml.SAXParseable
-
-
Constructor Summary
Constructors Constructor Description SAXParseable(org.xml.sax.InputSource in, org.xml.sax.ErrorHandler eh)
SAXParseable(org.xml.sax.InputSource in, org.xml.sax.ErrorHandler eh, org.kohsuke.rngom.rngparser.xml.sax.XMLReaderCreator xrc)
SAXParseable(org.xml.sax.InputSource in, org.xml.sax.ErrorHandler eh, org.xml.sax.EntityResolver er)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParsedPattern
parse(SchemaBuilder schemaBuilder)
Parses thisParseable
object into a RELAX NG pattern.ParsedPattern
parseExternal(java.lang.String uri, SchemaBuilder schemaBuilder, Scope s, java.lang.String inheritedNs)
Called fromSchemaBuilder
in response toSchemaBuilder.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 fromInclude
in response toInclude.endInclude(Parseable, String, String, Location, Annotations)
to parse the included grammar.
-
-
-
Constructor Detail
-
SAXParseable
public SAXParseable(org.xml.sax.InputSource in, org.xml.sax.ErrorHandler eh, org.kohsuke.rngom.rngparser.xml.sax.XMLReaderCreator xrc)
-
SAXParseable
public SAXParseable(org.xml.sax.InputSource in, org.xml.sax.ErrorHandler eh, org.xml.sax.EntityResolver er)
-
SAXParseable
public SAXParseable(org.xml.sax.InputSource in, org.xml.sax.ErrorHandler eh)
-
-
Method Detail
-
parse
public ParsedPattern parse(SchemaBuilder schemaBuilder) throws BuildException, IllegalSchemaException
Description copied from interface:Parseable
Parses thisParseable
object into a RELAX NG pattern.- Specified by:
parse
in interfaceParseable
- Parameters:
schemaBuilder
- The builder of the schema object model. This object dictates how the actual pattern is constructed.- Returns:
- a parsed object. Always returns a non-null valid object.
- Throws:
BuildException
IllegalSchemaException
-
parseInclude
public ParsedPattern parseInclude(java.lang.String uri, SchemaBuilder schemaBuilder, IncludedGrammar g, java.lang.String inheritedNs) throws BuildException, IllegalSchemaException
Description copied from interface:Parseable
Called fromInclude
in response toInclude.endInclude(Parseable, String, String, Location, Annotations)
to parse the included grammar.- Specified by:
parseInclude
in interfaceParseable
g
- receives the events from the included grammar.- Throws:
BuildException
IllegalSchemaException
-
parseExternal
public ParsedPattern parseExternal(java.lang.String uri, SchemaBuilder schemaBuilder, Scope s, java.lang.String inheritedNs) throws BuildException, IllegalSchemaException
Description copied from interface:Parseable
Called fromSchemaBuilder
in response toSchemaBuilder.makeExternalRef(Parseable, String, String, Scope, Location, Annotations)
to parse the referenced grammar.- Specified by:
parseExternal
in interfaceParseable
schemaBuilder
- receives the events from the referenced grammar.- Throws:
BuildException
IllegalSchemaException
-
-