Class CompactParseable
- java.lang.Object
-
- org.kohsuke.rngom.rngparser.parse.compact.CompactParseable
-
-
Constructor Summary
Constructors Constructor Description CompactParseable(org.xml.sax.InputSource in, org.xml.sax.ErrorHandler eh)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParsedPatternparse(SchemaBuilder sb)Parses thisParseableobject into a RELAX NG pattern.ParsedPatternparseExternal(java.lang.String uri, SchemaBuilder sb, Scope scope, java.lang.String inheritedNs)Called fromSchemaBuilderin response toSchemaBuilder.makeExternalRef(Parseable, String, String, Scope, Location, Annotations)to parse the referenced grammar.ParsedPatternparseInclude(java.lang.String uri, SchemaBuilder sb, IncludedGrammar g, java.lang.String inheritedNs)Called fromIncludein response toInclude.endInclude(Parseable, String, String, Location, Annotations)to parse the included grammar.
-
-
-
Method Detail
-
parse
public ParsedPattern parse(SchemaBuilder sb) throws BuildException, IllegalSchemaException
Description copied from interface:ParseableParses thisParseableobject into a RELAX NG pattern.- Specified by:
parsein interfaceParseable- Parameters:
sb- 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(java.lang.String uri, SchemaBuilder sb, IncludedGrammar g, java.lang.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(java.lang.String uri, SchemaBuilder sb, Scope scope, java.lang.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 interfaceParseablesb- receives the events from the referenced grammar.- Throws:
BuildExceptionIllegalSchemaException
-
-