com.sun.msv.relaxns.reader
Class NamespaceState

java.lang.Object
  extended by com.sun.msv.reader.State
      extended by com.sun.msv.relaxns.reader.NamespaceState
All Implemented Interfaces:
ContentHandler

public class NamespaceState
extends State

parses <namespace> element of RELAX Namespace.

Author:
Kohsuke KAWAGUCHI

Field Summary
 
Fields inherited from class com.sun.msv.reader.State
baseURI, location, parentState, reader, startTag
 
Constructor Summary
NamespaceState()
           
 
Method Summary
 void endDocument()
           
 void endElement(String namespace, String localName, String qName)
           
protected  RELAXNSReader getReader()
          gets reader in type-safe fashion
 void startElement(String namespace, String localName, String qName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceState

public NamespaceState()
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.

Overrides:
startSelf in class State

startElement

public void startElement(String namespace,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Throws:
SAXException

endElement

public void endElement(String namespace,
                       String localName,
                       String qName)

endDocument

public void endDocument()

getReader

protected RELAXNSReader getReader()
gets reader in type-safe fashion



MSV