com.sun.msv.reader
Class TerminalState

java.lang.Object
  extended by com.sun.msv.reader.State
      extended by com.sun.msv.reader.SimpleState
          extended by com.sun.msv.reader.ExpressionState
              extended by com.sun.msv.reader.ExpressionWithoutChildState
                  extended by com.sun.msv.reader.TerminalState
All Implemented Interfaces:
ContentHandler

public class TerminalState
extends ExpressionWithoutChildState

State that always returns the same expression. Typically used for <empty/>, <notAllowed/> and <text/> of RELAX NG.

Author:
Kohsuke KAWAGUCHI

Field Summary
 
Fields inherited from class com.sun.msv.reader.State
baseURI, location, parentState, reader, startTag
 
Constructor Summary
TerminalState(Expression exp)
           
 
Method Summary
protected  Expression makeExpression()
          This method is called from endElement method.
 
Methods inherited from class com.sun.msv.reader.ExpressionWithoutChildState
createChildState
 
Methods inherited from class com.sun.msv.reader.ExpressionState
endSelf
 
Methods inherited from class com.sun.msv.reader.SimpleState
endDocument, endElement, isGrammarElement, startElement
 
Methods inherited from class com.sun.msv.reader.State
_assert, callInterceptExpression, characters, endPrefixMapping, getBaseURI, getLocation, getParentState, getStartTag, ignorableWhitespace, init, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, startSelf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TerminalState

public TerminalState(Expression exp)
Method Detail

makeExpression

protected Expression makeExpression()
Description copied from class: ExpressionState
This method is called from endElement method. Implementation has to provide Expression object that represents the content of this element.

Specified by:
makeExpression in class ExpressionState


MSV