Top Description Fields Constructors Methods
com.sun.msv.relaxns.grammar.relax

public Class RELAXIslandSchema

extends IslandSchemaImpl
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
java.util.Iterator, .Set, org.iso_relax.dispatcher.ElementDecl, .IslandSchema, .SchemaProvider, org.xml.sax.ErrorHandler, .SAXException, com.sun.msv.grammar.Expression, .Grammar, .ReferenceExp, com.sun.msv.grammar.relax.AttPoolClause, .ElementRules, .HedgeRules, .RELAXModule, com.sun.msv.relaxns.grammar.DeclImpl, .ExternalElementExp, com.sun.msv.relaxns.verifier.IslandSchemaImpl

IslandSchema implementation for RELAX module.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
protected final RELAXModule
module

underlying RELAX module which this IslandSchema is representing

protected Set<Expression>
Inherited from com.sun.msv.relaxns.verifier.IslandSchemaImpl:
attributesDeclselementDecls

Constructor Summary

AccessConstructor and Description
public
RELAXIslandSchema(RELAXModule module, Set<Expression> pendingAnyOtherElements)

Method Summary

Modifier and TypeMethod and Description
public void
bind(SchemaProvider provider, ErrorHandler handler)

Implements org.iso_relax.dispatcher.IslandSchema.bind.

binds references to imported elementDecls by using given provider.
private Expression
createChoiceOfAllExportedRules(SchemaProvider provider)

creates a choice expression of all exported rules in the given provider.

protected Grammar
getGrammar()

Implements abstract com.sun.msv.relaxns.verifier.IslandSchemaImpl.getGrammar.

get the grammar object that represents this island.
Inherited from com.sun.msv.relaxns.verifier.IslandSchemaImpl:
bindcreateNewAttributesVerifiercreateNewVerifiergetAttributesDeclByNamegetAttributesDeclsgetElementDeclByNamegetElementDeclsiterateAttributesDeclsiterateElementDecls

Field Detail

moduleback to summary
protected final RELAXModule module

underlying RELAX module which this IslandSchema is representing

pendingAnyOtherElementsback to summary
protected Set<Expression> pendingAnyOtherElements

Constructor Detail

RELAXIslandSchemaback to summary
public RELAXIslandSchema(RELAXModule module, Set<Expression> pendingAnyOtherElements)

Method Detail

bindback to summary
public void bind(SchemaProvider provider, ErrorHandler handler) throws SAXException

Implements org.iso_relax.dispatcher.IslandSchema.bind.

Doc from org.iso_relax.dispatcher.IslandSchema.bind.

binds references to imported elementDecls by using given provider. this method is only called once before the first validation starts.

Exceptions
SAXException:
any error has to be reported to ErrorHandler first.
createChoiceOfAllExportedRulesback to summary
private Expression createChoiceOfAllExportedRules(SchemaProvider provider)

creates a choice expression of all exported rules in the given provider. this expression is used as a pseudo content model of anyOtherElement.

getGrammarback to summary
protected Grammar getGrammar()

Implements abstract com.sun.msv.relaxns.verifier.IslandSchemaImpl.getGrammar.

Doc from com.sun.msv.relaxns.verifier.IslandSchemaImpl.getGrammar.

get the grammar object that represents this island.