Package com.sun.msv.relaxns.verifier
Class IslandSchemaImpl
java.lang.Object
com.sun.msv.relaxns.verifier.IslandSchemaImpl
- All Implemented Interfaces:
Serializable,org.iso_relax.dispatcher.IslandSchema
- Direct Known Subclasses:
RELAXIslandSchema,TREXIslandSchema
public abstract class IslandSchemaImpl
extends Object
implements org.iso_relax.dispatcher.IslandSchema, Serializable
base implementation of IslandSchema for MSV.
the iso_relax package doesn't have the distinction between AGM and VGM.
For the safety, the implementation of the createNewVerifier method creates
a new VGM everytime it is called.
Fortunately, when all island schemas are from MSV, the application can simply
treat RELAXGrammar as a normal Grammar object; there is no need to use
Dispatcher nor any divide-and-validate framework.
So createNewVerifier method is called only when
- MSV is used by other RELAX Namespace implementation or
- other IslandSchema implemntations are used by MSV's RELAXNSReader.
- Author:
- Kohsuke KAWAGUCHI
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classreplaces all ExternalElementExp and ExternalAttributeExp by actual definitions. -
Field Summary
FieldsModifier and TypeFieldDescriptionmap from name to DeclImpl.map from name to DeclImpl. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbind(ReferenceContainer con, IslandSchemaImpl.Binder binder) org.iso_relax.dispatcher.AttributesVerifiercreateNewAttributesVerifier(String namespaceURI, org.iso_relax.dispatcher.AttributesDecl[] decls) org.iso_relax.dispatcher.IslandVerifiercreateNewVerifier(String namespace, org.iso_relax.dispatcher.ElementDecl[] rules) org.iso_relax.dispatcher.AttributesDeclorg.iso_relax.dispatcher.AttributesDecl[]org.iso_relax.dispatcher.ElementDeclgetElementDeclByName(String name) org.iso_relax.dispatcher.ElementDecl[]protected abstract Grammarget the grammar object that represents this island.Iterator<org.iso_relax.dispatcher.AttributesDecl>Iterator<org.iso_relax.dispatcher.ElementDecl>Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.iso_relax.dispatcher.IslandSchema
bind
-
Field Details
-
elementDecls
map from name to DeclImpl. -
attributesDecls
map from name to DeclImpl.
-
-
Constructor Details
-
IslandSchemaImpl
public IslandSchemaImpl()
-
-
Method Details
-
createNewVerifier
public org.iso_relax.dispatcher.IslandVerifier createNewVerifier(String namespace, org.iso_relax.dispatcher.ElementDecl[] rules) - Specified by:
createNewVerifierin interfaceorg.iso_relax.dispatcher.IslandSchema
-
getGrammar
get the grammar object that represents this island. -
getElementDeclByName
- Specified by:
getElementDeclByNamein interfaceorg.iso_relax.dispatcher.IslandSchema
-
iterateElementDecls
- Specified by:
iterateElementDeclsin interfaceorg.iso_relax.dispatcher.IslandSchema
-
getElementDecls
public org.iso_relax.dispatcher.ElementDecl[] getElementDecls()- Specified by:
getElementDeclsin interfaceorg.iso_relax.dispatcher.IslandSchema
-
getAttributesDeclByName
- Specified by:
getAttributesDeclByNamein interfaceorg.iso_relax.dispatcher.IslandSchema
-
iterateAttributesDecls
- Specified by:
iterateAttributesDeclsin interfaceorg.iso_relax.dispatcher.IslandSchema
-
getAttributesDecls
public org.iso_relax.dispatcher.AttributesDecl[] getAttributesDecls()- Specified by:
getAttributesDeclsin interfaceorg.iso_relax.dispatcher.IslandSchema
-
createNewAttributesVerifier
public org.iso_relax.dispatcher.AttributesVerifier createNewAttributesVerifier(String namespaceURI, org.iso_relax.dispatcher.AttributesDecl[] decls) - Specified by:
createNewAttributesVerifierin interfaceorg.iso_relax.dispatcher.IslandSchema
-
bind
-