Interface Parseable
- 
- All Known Implementing Classes:
 CompactParseable,SAXParseable
public interface ParseableAn input that can be turned into a RELAX NG pattern.This is either a RELAX NG schema in the XML format, or a RELAX NG schema in the compact syntax.
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <P extends ParsedPattern>
Pparse(SchemaBuilder<?,P,?,?,?,?> sb)Parses thisParseableobject into a RELAX NG pattern.<P extends ParsedPattern>
PparseExternal(java.lang.String uri, SchemaBuilder<?,P,?,?,?,?> f, Scope s, java.lang.String inheritedNs)Called fromSchemaBuilderin response toSchemaBuilder.makeExternalRef(Parseable, String, String, Scope, Location, Annotations)to parse the referenced grammar.<P extends ParsedPattern>
PparseInclude(java.lang.String uri, SchemaBuilder<?,P,?,?,?,?> f, IncludedGrammar<P,?,?,?,?> g, java.lang.String inheritedNs)Called fromIncludein response toInclude.endInclude(Parseable, String, String, Location, Annotations)to parse the included grammar. 
 - 
 
- 
- 
Method Detail
- 
parse
<P extends ParsedPattern> P parse(SchemaBuilder<?,P,?,?,?,?> sb) throws BuildException, IllegalSchemaException
Parses thisParseableobject into a RELAX NG pattern.- 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
<P extends ParsedPattern> P parseInclude(java.lang.String uri, SchemaBuilder<?,P,?,?,?,?> f, IncludedGrammar<P,?,?,?,?> g, java.lang.String inheritedNs) throws BuildException, IllegalSchemaException
Called fromIncludein response toInclude.endInclude(Parseable, String, String, Location, Annotations)to parse the included grammar.- Parameters:
 g- receives the events from the included grammar.- Throws:
 BuildExceptionIllegalSchemaException
 
- 
parseExternal
<P extends ParsedPattern> P parseExternal(java.lang.String uri, SchemaBuilder<?,P,?,?,?,?> f, Scope s, java.lang.String inheritedNs) throws BuildException, IllegalSchemaException
Called fromSchemaBuilderin response toSchemaBuilder.makeExternalRef(Parseable, String, String, Scope, Location, Annotations)to parse the referenced grammar.- Parameters:
 f- receives the events from the referenced grammar.- Throws:
 BuildExceptionIllegalSchemaException
 
 - 
 
 -