Top Description Methods
com.sun.tools.rngom.parse

public Interface Parseable

Known Direct Implementers
com.sun.tools.rngom.parse.compact.CompactParseable, com.sun.tools.rngom.parse.xml.SAXParseable, com.sun.tools.rngom.digested.PatternParseable
Imports
com.sun.tools.rngom.ast.builder.*, com.sun.tools.rngom.ast.om.*

An 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

Modifier and TypeMethod and Description
public <P extends ParsedPattern> P

Returns:

a parsed object. Always returns a non-null valid object.
parse
(SchemaBuilder<?, P, ?, ?, ?, ?>
The builder of the schema object model. This object dictates how the actual pattern is constructed.
sb
)

Parses this object into a RELAX NG pattern.

public <P extends ParsedPattern> P
parseExternal(String uri, SchemaBuilder<?, P, ?, ?, ?, ?>
receives the events from the referenced grammar.
f
,
Scope<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>> s, String inheritedNs)

Called from SchemaBuilder in response to SchemaBuilder#makeExternalRef(Parseable, String, String, Scope, Location, Annotations) to parse the referenced grammar.

public <P extends ParsedPattern> P
parseInclude(String uri, SchemaBuilder<?, P, ?, ?, ?, ?> f, IncludedGrammar<P, ?, ?, ?, ?>
receives the events from the included grammar.
g
,
String inheritedNs)

Called from Include in response to Include#endInclude(Parseable, String, String, Location, Annotations) to parse the included grammar.

Method Detail

parseback to summary
public <P extends ParsedPattern> P parse(SchemaBuilder<?, P, ?, ?, ?, ?> sb) throws BuildException, IllegalSchemaException

Parses this object into a RELAX NG pattern.

Parameters
sb:SchemaBuilder<?, P, ?, ?, ?, ?>

The builder of the schema object model. This object dictates how the actual pattern is constructed.

Returns:P

a parsed object. Always returns a non-null valid object.

parseExternalback to summary
public <P extends ParsedPattern> P parseExternal(String uri, SchemaBuilder<?, P, ?, ?, ?, ?> f, Scope<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>> s, String inheritedNs) throws BuildException, IllegalSchemaException

Called from SchemaBuilder in response to SchemaBuilder#makeExternalRef(Parseable, String, String, Scope, Location, Annotations) to parse the referenced grammar.

Parameters
f:SchemaBuilder<?, P, ?, ?, ?, ?>

receives the events from the referenced grammar.

parseIncludeback to summary
public <P extends ParsedPattern> P parseInclude(String uri, SchemaBuilder<?, P, ?, ?, ?, ?> f, IncludedGrammar<P, ?, ?, ?, ?> g, String inheritedNs) throws BuildException, IllegalSchemaException

Called from Include in response to Include#endInclude(Parseable, String, String, Location, Annotations) to parse the included grammar.

Parameters
g:IncludedGrammar<P, ?, ?, ?, ?>

receives the events from the included grammar.