Top Description Fields Constructors Methods
com.sun.msv.reader.relax.core

public Class ModuleMergeState

extends DivInModuleState
Class Inheritance
Known Direct Subclasses
com.sun.msv.reader.relax.core.ModuleState

Used to parse module. As stand-alone, this state is used to parse a module included by another module. By a base class, this state is used to parse a "head" module. This class checks consistency between targetNamespace attribute and the namespace specified by its caller (grammar/module).
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
protected final String
expectedTargetNamespace

expected targetNamespace for this module.

protected String
targetNamespace

computed targetNamespace.

Constructor Summary

AccessConstructor and Description
protected
ModuleMergeState(String expectedTargetNamespace)

Method Summary

Modifier and TypeMethod and Description
protected void
startSelf()

Overrides com.sun.msv.reader.State.startSelf.

performs a task that should be done before reading any child elements.
Inherited from com.sun.msv.reader.relax.core.DivInModuleState:
createChildStategetReadergetTargetNamespaceUrionEndChildonEndChild

Field Detail

expectedTargetNamespaceback to summary
protected final String expectedTargetNamespace

expected targetNamespace for this module. null indicates that module must have targetNamespace attribute.

If RELAX module has 'targetNamespace' attribute, then its value must be equal to this value, or this value must be null.

If RELAX module doesn't have the attribute, then this value is used as the target namespace. If this value is null, then it is an error.

targetNamespaceback to summary
protected String targetNamespace

computed targetNamespace. actual target namespace depends on expected target namespace and module. this field is set in startSelf method.

Constructor Detail

ModuleMergeStateback to summary
protected ModuleMergeState(String expectedTargetNamespace)

Method Detail

startSelfback to summary
protected void startSelf()

Overrides com.sun.msv.reader.State.startSelf.

Doc from com.sun.msv.reader.State.startSelf.

performs a task that should be done before reading any child elements. derived-class can safely read startTag and/or parentState values.