org.iso_relax.dispatcher.impl

Class IgnoredSchema

Implemented Interfaces:
IslandSchema

public class IgnoredSchema
extends java.lang.Object
implements IslandSchema

IslandSchema implementation for "ignored" island. This schema exports whatever importer wants, and anything is valid in this schema.
Author:
Kohsuke KAWAGUCHI

Method Summary

void
bind(SchemaProvider provider, ErrorHandler handler)
binds references to imported elementDecls by using given provider.
AttributesVerifier
createNewAttributesVerifier(String namespaceURI, AttributesDecl[] decls)
creates a new AttributesVerifier instance that is going to validate attribute declarations.
IslandVerifier
createNewVerifier(String namespaceURI, ElementDecl[] rules)
creates a new IslandVerifier instance that is going to validate one island.
AttributesDecl
getAttributesDeclByName(String name)
gets exported AttributesDecl object that has specified name.
AttributesDecl[]
getAttributesDecls()
returns all exported attributesDecl objects at once.
ElementDecl
getElementDeclByName(String name)
gets exported elementDecl object that has specified name.
ElementDecl[]
getElementDecls()
returns all exported elementDecl objects at once.
Iterator
iterateAttributesDecls()
iterates all exported attributesDecl objects.
Iterator
iterateElementDecls()
iterates all exported elementDecl objects.

Method Details

bind

public void bind(SchemaProvider provider,
                 ErrorHandler handler)
binds references to imported elementDecls by using given provider. this method is only called once before the first validation starts.
Specified by:
bind in interface IslandSchema

createNewAttributesVerifier

public AttributesVerifier createNewAttributesVerifier(String namespaceURI,
                                                      AttributesDecl[] decls)
creates a new AttributesVerifier instance that is going to validate attribute declarations.
Specified by:
createNewAttributesVerifier in interface IslandSchema
Parameters:
namespaceURI - namespace URI of the attributes, which is going to be validated by the newly created verifier.
decls - set of AttributesDecl objects that newly created verifier shall validate.

createNewVerifier

public IslandVerifier createNewVerifier(String namespaceURI,
                                        ElementDecl[] rules)
creates a new IslandVerifier instance that is going to validate one island.
Specified by:
createNewVerifier in interface IslandSchema
Parameters:
namespaceURI - namespace URI of the newly found element, which is going to be validated by the newly created IslandVerifier.

getAttributesDeclByName

public AttributesDecl getAttributesDeclByName(String name)
gets exported AttributesDecl object that has specified name.
Specified by:
getAttributesDeclByName in interface IslandSchema
Returns:
null if no AttributesDecl is exported under the given name.

getAttributesDecls

public AttributesDecl[] getAttributesDecls()
returns all exported attributesDecl objects at once.
Specified by:
getAttributesDecls in interface IslandSchema

getElementDeclByName

public ElementDecl getElementDeclByName(String name)
gets exported elementDecl object that has specified name.
Specified by:
getElementDeclByName in interface IslandSchema
Returns:
null if no elementDecl is exported under the given name.

getElementDecls

public ElementDecl[] getElementDecls()
returns all exported elementDecl objects at once.
Specified by:
getElementDecls in interface IslandSchema

iterateAttributesDecls

public Iterator iterateAttributesDecls()
iterates all exported attributesDecl objects.
Specified by:
iterateAttributesDecls in interface IslandSchema

iterateElementDecls

public Iterator iterateElementDecls()
iterates all exported elementDecl objects.
Specified by:
iterateElementDecls in interface IslandSchema