Package com.sun.msv.relaxns.reader
Class NamespaceState
- java.lang.Object
-
- com.sun.msv.reader.State
-
- com.sun.msv.relaxns.reader.NamespaceState
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler
public class NamespaceState extends State
parses <namespace> element of RELAX Namespace.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
NamespaceState.CutInFilter
-
Field Summary
Fields Modifier and Type Field Description private boolean
bailOut
this flag indicates we are in bail-out mode.private boolean
inlineModuleExpected
this flag indicates this object expects a module element to appear as the child.(package private) org.iso_relax.dispatcher.IslandSchemaReader
moduleReader
this object will parse inlined grammar.private java.lang.String
namespace
inline module should have this primary namespace
-
Constructor Summary
Constructors Constructor Description NamespaceState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endDocument()
void
endElement(java.lang.String namespace, java.lang.String localName, java.lang.String qName)
protected RELAXNSReader
getReader()
gets reader in type-safe fashionprivate void
getSchema(org.iso_relax.dispatcher.IslandSchemaReader moduleReader)
void
startElement(java.lang.String namespace, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
protected void
startSelf()
performs a task that should be done before reading any child elements.-
Methods inherited from class com.sun.msv.reader.State
_assert, callInterceptExpression, characters, endPrefixMapping, getBaseURI, getLocation, getParentState, getStartTag, ignorableWhitespace, init, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
-
-
-
-
Field Detail
-
inlineModuleExpected
private boolean inlineModuleExpected
this flag indicates this object expects a module element to appear as the child.
-
bailOut
private boolean bailOut
this flag indicates we are in bail-out mode. any contents of <namespace> element will be ignored. this flag is used for error recovery.
-
namespace
private java.lang.String namespace
inline module should have this primary namespace
-
moduleReader
org.iso_relax.dispatcher.IslandSchemaReader moduleReader
this object will parse inlined grammar.
-
-
Method Detail
-
startSelf
protected void startSelf()
Description copied from class:State
performs a task that should be done before reading any child elements. derived-class can safely read startTag and/or parentState values.
-
getSchema
private void getSchema(org.iso_relax.dispatcher.IslandSchemaReader moduleReader)
-
startElement
public void startElement(java.lang.String namespace, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
-
endElement
public void endElement(java.lang.String namespace, java.lang.String localName, java.lang.String qName)
-
endDocument
public void endDocument()
-
getReader
protected RELAXNSReader getReader()
gets reader in type-safe fashion
-
-