Top Description Fields Constructors Methods
com.sun.msv.reader.xmlschema

public Class SchemaIncludedState

extends GlobalDeclState
Class Inheritance
Known Direct Subclasses
com.sun.msv.reader.xmlschema.SchemaState
Imports
java.util.HashSet, .Set, com.sun.msv.reader.IgnoreState, .State, com.sun.msv.util.StartTagInfo

used to parse <schema> element of included schema.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
protected String
expectedTargetNamespace

target namespace that the caller expects.

private boolean
ignoreContents

this flag is set to true to indicate all the contents of this element will be skipped (due to the double inclusion).

private String
private String
private String
private String
private String

Constructor Summary

AccessConstructor and Description
protected
SchemaIncludedState(String expectedTargetNamespace)

Method Summary

Modifier and TypeMethod and Description
protected State
createChildState(StartTagInfo tag)

Overrides com.sun.msv.reader.xmlschema.GlobalDeclState.createChildState.

creates appropriate child state object for this element
protected void
endSelf()

Overrides com.sun.msv.reader.SimpleState.endSelf.

this method is called in endElement method when the state is about to be removed.
protected void
onTargetNamespaceResolved(String
namespace of the schema
targetNs
,
boolean
TODO
ignoreContents
)

This is called when the target namespace is determined for a new schema.

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.xmlschema.GlobalDeclState:
getTargetNamespaceUrionEndChildonEndChild

Field Detail

expectedTargetNamespaceback to summary
protected String expectedTargetNamespace

target namespace that the caller expects. If this field is null, that indicates caller doesn't expect particular target namespace. If this field is non-null and schema element has a different value as targetNamespace, then error will be reported.

ignoreContentsback to summary
private boolean ignoreContents

this flag is set to true to indicate all the contents of this element will be skipped (due to the double inclusion).

previousAttributeFormDefaultback to summary
private String previousAttributeFormDefault
previousBlockDefaultback to summary
private String previousBlockDefault
previousChameleonTargetNamespaceback to summary
private String previousChameleonTargetNamespace
previousElementFormDefaultback to summary
private String previousElementFormDefault
previousFinalDefaultback to summary
private String previousFinalDefault

Constructor Detail

SchemaIncludedStateback to summary
protected SchemaIncludedState(String expectedTargetNamespace)

Method Detail

createChildStateback to summary
protected State createChildState(StartTagInfo tag)

Overrides com.sun.msv.reader.xmlschema.GlobalDeclState.createChildState.

Doc from com.sun.msv.reader.SimpleState.createChildState.

creates appropriate child state object for this element

endSelfback to summary
protected void endSelf()

Overrides com.sun.msv.reader.SimpleState.endSelf.

Doc from com.sun.msv.reader.SimpleState.endSelf.

this method is called in endElement method when the state is about to be removed. derived-class should perform any wrap-up job

onTargetNamespaceResolvedback to summary
protected void onTargetNamespaceResolved(String targetNs, boolean ignoreContents)

This is called when the target namespace is determined for a new schema.

Parameters
targetNs:String

namespace of the schema

ignoreContents:boolean

TODO

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.