|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.XMLFilterImpl
com.sun.msv.reader.GrammarReader
com.sun.msv.reader.relax.RELAXReader
public abstract class RELAXReader
reads RELAX grammar/module by SAX2 and constructs abstract grammar model.
Nested Class Summary | |
---|---|
static class |
RELAXReader.StateFactory
creates various State object, which in turn parses grammar. |
Nested classes/interfaces inherited from class com.sun.msv.reader.GrammarReader |
---|
GrammarReader.BackPatch, GrammarReader.BackwardReferenceMap, GrammarReader.ChainPrefixResolver, GrammarReader.PrefixResolver |
Field Summary | |
---|---|
static String |
ERR_ILLEGAL_OCCURS
|
static String |
ERR_MISPLACED_OCCURS
|
static String |
RELAXCoreNamespace
Namespace URI of RELAX Core |
RELAXReader.StateFactory |
sfactory
|
Constructor Summary | |
---|---|
RELAXReader(GrammarReaderController controller,
SAXParserFactory parserFactory,
RELAXReader.StateFactory stateFactory,
ExpressionPool pool,
State initialState)
|
Method Summary | |
---|---|
protected boolean |
canHaveOccurs(State state)
returns true if the given state can have "occurs" attribute. |
State |
createExpressionChildState(State parent,
StartTagInfo tag)
this method must be implemented by the derived class to create language-default expresion state. |
FacetState |
createFacetState(State parent,
StartTagInfo tag)
|
protected ExpressionPool |
getPool()
|
protected Expression |
interceptExpression(State state,
Expression exp)
intercepts an expression made by ExpressionState before it is passed to the parent state. |
protected String |
localizeMessage(String propertyName,
Object[] args)
formats localized message with arguments |
protected abstract Expression |
resolveElementRef(String namespace,
String label)
obtains an Expression specified by given (namespace,label) pair. |
protected abstract Expression |
resolveHedgeRef(String namespace,
String label)
obtains an Expression specified by given (namespace,label) pair. |
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
---|
characters, endDocument, endElement, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startElement, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String RELAXCoreNamespace
public final RELAXReader.StateFactory sfactory
public static final String ERR_ILLEGAL_OCCURS
public static final String ERR_MISPLACED_OCCURS
Constructor Detail |
---|
public RELAXReader(GrammarReaderController controller, SAXParserFactory parserFactory, RELAXReader.StateFactory stateFactory, ExpressionPool pool, State initialState)
Method Detail |
---|
public State createExpressionChildState(State parent, StartTagInfo tag)
GrammarReader
createExpressionChildState
in class GrammarReader
public FacetState createFacetState(State parent, StartTagInfo tag)
protected boolean canHaveOccurs(State state)
protected Expression interceptExpression(State state, Expression exp)
GrammarReader
interceptExpression
in class GrammarReader
protected abstract Expression resolveElementRef(String namespace, String label)
protected abstract Expression resolveHedgeRef(String namespace, String label)
protected String localizeMessage(String propertyName, Object[] args)
GrammarReader
localizeMessage
in class GrammarReader
protected ExpressionPool getPool()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |