Package org.iso_relax.dispatcher.impl
Class IgnoredSchema
- java.lang.Object
-
- org.iso_relax.dispatcher.impl.IgnoredSchema
-
- All 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
-
-
Constructor Summary
Constructors Constructor Description IgnoredSchema()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(SchemaProvider provider, org.xml.sax.ErrorHandler handler)
binds references to imported elementDecls by using given provider.AttributesVerifier
createNewAttributesVerifier(java.lang.String namespaceURI, AttributesDecl[] decls)
creates a new AttributesVerifier instance that is going to validate attribute declarations.IslandVerifier
createNewVerifier(java.lang.String namespaceURI, ElementDecl[] rules)
creates a new IslandVerifier instance that is going to validate one island.AttributesDecl
getAttributesDeclByName(java.lang.String name)
gets exported AttributesDecl object that has specified name.AttributesDecl[]
getAttributesDecls()
returns all exported attributesDecl objects at once.ElementDecl
getElementDeclByName(java.lang.String name)
gets exported elementDecl object that has specified name.ElementDecl[]
getElementDecls()
returns all exported elementDecl objects at once.java.util.Iterator
iterateAttributesDecls()
iterates all exported attributesDecl objects.java.util.Iterator
iterateElementDecls()
iterates all exported elementDecl objects.
-
-
-
Method Detail
-
getElementDeclByName
public ElementDecl getElementDeclByName(java.lang.String name)
Description copied from interface:IslandSchema
gets exported elementDecl object that has specified name.- Specified by:
getElementDeclByName
in interfaceIslandSchema
- Returns:
- null if no elementDecl is exported under the given name.
-
getElementDecls
public ElementDecl[] getElementDecls()
Description copied from interface:IslandSchema
returns all exported elementDecl objects at once.- Specified by:
getElementDecls
in interfaceIslandSchema
-
iterateElementDecls
public java.util.Iterator iterateElementDecls()
Description copied from interface:IslandSchema
iterates all exported elementDecl objects.- Specified by:
iterateElementDecls
in interfaceIslandSchema
-
createNewVerifier
public IslandVerifier createNewVerifier(java.lang.String namespaceURI, ElementDecl[] rules)
Description copied from interface:IslandSchema
creates a new IslandVerifier instance that is going to validate one island.- Specified by:
createNewVerifier
in interfaceIslandSchema
- Parameters:
namespaceURI
- namespace URI of the newly found element, which is going to be validated by the newly created IslandVerifier.rules
- set of ElementDecl objects that newly created verifier shall validate.
-
getAttributesDeclByName
public AttributesDecl getAttributesDeclByName(java.lang.String name)
Description copied from interface:IslandSchema
gets exported AttributesDecl object that has specified name.- Specified by:
getAttributesDeclByName
in interfaceIslandSchema
- Returns:
- null if no AttributesDecl is exported under the given name.
-
getAttributesDecls
public AttributesDecl[] getAttributesDecls()
Description copied from interface:IslandSchema
returns all exported attributesDecl objects at once.- Specified by:
getAttributesDecls
in interfaceIslandSchema
-
iterateAttributesDecls
public java.util.Iterator iterateAttributesDecls()
Description copied from interface:IslandSchema
iterates all exported attributesDecl objects.- Specified by:
iterateAttributesDecls
in interfaceIslandSchema
-
createNewAttributesVerifier
public AttributesVerifier createNewAttributesVerifier(java.lang.String namespaceURI, AttributesDecl[] decls)
Description copied from interface:IslandSchema
creates a new AttributesVerifier instance that is going to validate attribute declarations.- Specified by:
createNewAttributesVerifier
in interfaceIslandSchema
- 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.
-
bind
public void bind(SchemaProvider provider, org.xml.sax.ErrorHandler handler)
Description copied from interface:IslandSchema
binds references to imported elementDecls by using given provider. this method is only called once before the first validation starts.- Specified by:
bind
in interfaceIslandSchema
-
-