Package org.iso_relax.dispatcher
Interface IslandSchema
-
- All Known Implementing Classes:
IgnoredSchema
public interface IslandSchemarepresents a schema that validates one island.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbind(SchemaProvider provider, org.xml.sax.ErrorHandler errorHandler)binds references to imported elementDecls by using given provider.AttributesVerifiercreateNewAttributesVerifier(java.lang.String namespaceURI, AttributesDecl[] decls)creates a new AttributesVerifier instance that is going to validate attribute declarations.IslandVerifiercreateNewVerifier(java.lang.String namespaceURI, ElementDecl[] elementDecls)creates a new IslandVerifier instance that is going to validate one island.AttributesDeclgetAttributesDeclByName(java.lang.String name)gets exported AttributesDecl object that has specified name.AttributesDecl[]getAttributesDecls()returns all exported attributesDecl objects at once.ElementDeclgetElementDeclByName(java.lang.String name)gets exported elementDecl object that has specified name.ElementDecl[]getElementDecls()returns all exported elementDecl objects at once.java.util.IteratoriterateAttributesDecls()iterates all exported attributesDecl objects.java.util.IteratoriterateElementDecls()iterates all exported elementDecl objects.
-
-
-
Method Detail
-
createNewVerifier
IslandVerifier createNewVerifier(java.lang.String namespaceURI, ElementDecl[] elementDecls)
creates a new IslandVerifier instance that is going to validate one island.- Parameters:
namespaceURI- namespace URI of the newly found element, which is going to be validated by the newly created IslandVerifier.elementDecls- set of ElementDecl objects that newly created verifier shall validate.
-
getElementDeclByName
ElementDecl getElementDeclByName(java.lang.String name)
gets exported elementDecl object that has specified name.- Returns:
- null if no elementDecl is exported under the given name.
-
iterateElementDecls
java.util.Iterator iterateElementDecls()
iterates all exported elementDecl objects.
-
getElementDecls
ElementDecl[] getElementDecls()
returns all exported elementDecl objects at once.
-
getAttributesDeclByName
AttributesDecl getAttributesDeclByName(java.lang.String name)
gets exported AttributesDecl object that has specified name.- Returns:
- null if no AttributesDecl is exported under the given name.
-
iterateAttributesDecls
java.util.Iterator iterateAttributesDecls()
iterates all exported attributesDecl objects.
-
getAttributesDecls
AttributesDecl[] getAttributesDecls()
returns all exported attributesDecl objects at once.
-
createNewAttributesVerifier
AttributesVerifier createNewAttributesVerifier(java.lang.String namespaceURI, AttributesDecl[] decls)
creates a new AttributesVerifier instance that is going to validate attribute declarations.- 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
void bind(SchemaProvider provider, org.xml.sax.ErrorHandler errorHandler) throws org.xml.sax.SAXException
binds references to imported elementDecls by using given provider. this method is only called once before the first validation starts.- Throws:
org.xml.sax.SAXException- any error has to be reported to ErrorHandler first.
-
-