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

public Class TerminalState

extends ExpressionWithoutChildState
Class Inheritance
Imports
com.sun.msv.grammar.Expression

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

Field Summary

Modifier and TypeField and Description
private final Expression

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Expression
makeExpression()

Implements abstract com.sun.msv.reader.ExpressionState.makeExpression.

This method is called from endElement method.
Inherited from com.sun.msv.reader.ExpressionWithoutChildState:
createChildState

Field Detail

expback to summary
private final Expression exp

Constructor Detail

TerminalStateback to summary
public TerminalState(Expression exp)

Method Detail

makeExpressionback to summary
protected Expression makeExpression()

Implements abstract com.sun.msv.reader.ExpressionState.makeExpression.

Doc from com.sun.msv.reader.ExpressionState.makeExpression.

This method is called from endElement method. Implementation has to provide Expression object that represents the content of this element.