Package com.sun.tools.rngom.parse.xml
Class SAXParseable
java.lang.Object
com.sun.tools.rngom.parse.xml.SAXParseable
- All Implemented Interfaces:
Parseable
RELAX NG schema in the XML syntax.
-
Constructor Summary
ConstructorsConstructorDescriptionSAXParseable(InputSource in, ErrorHandler eh) SAXParseable(InputSource in, ErrorHandler eh, XMLReaderCreator xrc) -
Method Summary
Modifier and TypeMethodDescriptionparse(SchemaBuilder schemaBuilder) Parses thisParseableobject into a RELAX NG pattern.parseExternal(String uri, SchemaBuilder schemaBuilder, Scope s, String inheritedNs) Called fromSchemaBuilderin response toSchemaBuilder.makeExternalRef(Parseable, String, String, Scope, Location, Annotations)to parse the referenced grammar.parseInclude(String uri, SchemaBuilder schemaBuilder, IncludedGrammar g, String inheritedNs) Called fromIncludein response toInclude.endInclude(Parseable, String, String, Location, Annotations)to parse the included grammar.
-
Constructor Details
-
SAXParseable
-
SAXParseable
-
-
Method Details
-
parse
public ParsedPattern parse(SchemaBuilder schemaBuilder) throws BuildException, IllegalSchemaException Description copied from interface:ParseableParses thisParseableobject into a RELAX NG pattern.- Specified by:
parsein 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:
BuildExceptionIllegalSchemaException
-
parseInclude
public ParsedPattern parseInclude(String uri, SchemaBuilder schemaBuilder, IncludedGrammar g, String inheritedNs) throws BuildException, IllegalSchemaException Description copied from interface:ParseableCalled fromIncludein response toInclude.endInclude(Parseable, String, String, Location, Annotations)to parse the included grammar.- Specified by:
parseIncludein interfaceParseableg- receives the events from the included grammar.- Throws:
BuildExceptionIllegalSchemaException
-
parseExternal
public ParsedPattern parseExternal(String uri, SchemaBuilder schemaBuilder, Scope s, String inheritedNs) throws BuildException, IllegalSchemaException Description copied from interface:ParseableCalled fromSchemaBuilderin response toSchemaBuilder.makeExternalRef(Parseable, String, String, Scope, Location, Annotations)to parse the referenced grammar.- Specified by:
parseExternalin interfaceParseableschemaBuilder- receives the events from the referenced grammar.- Throws:
BuildExceptionIllegalSchemaException
-