|
|||||||||
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.trex.TREXBaseReader
public abstract class TREXBaseReader
reads TREX grammar from SAX2 and constructs abstract grammar model.
Nested Class Summary | |
---|---|
static class |
TREXBaseReader.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_BAD_COMBINE
|
static String |
ERR_COMBINE_MISSING
|
static String |
ERR_DUPLICATE_DEFINITION
|
static String |
ERR_INTERLEAVED_ANYSTRING
|
static String |
ERR_INTERLEAVED_STRING
|
static String |
ERR_MISSING_CHILD_NAMECLASS
|
static String |
ERR_MORE_THAN_ONE_NAMECLASS
|
static String |
ERR_NONEXISTENT_PARENT_GRAMMAR
|
static String |
ERR_REPEATED_STRING
|
static String |
ERR_SEQUENCED_STRING
|
static String |
ERR_UNDECLARED_PREFIX
|
static String |
ERR_UNDEFINED_PATTERN
|
static String |
ERR_UNKNOWN_DATATYPE_VOCABULARY
|
TREXBaseReader.StateFactory |
sfactory
|
static String |
WRN_COMBINE_IGNORED
|
static String |
WRN_OBSOLETED_XMLSCHEMA_NAMSPACE
|
Constructor Summary | |
---|---|
TREXBaseReader(GrammarReaderController controller,
SAXParserFactory parserFactory,
ExpressionPool pool,
TREXBaseReader.StateFactory stateFactory,
State rootState)
full constructor |
Method Summary | |
---|---|
State |
createExpressionChildState(State parent,
StartTagInfo tag)
this method must be implemented by the derived class to create language-default expresion state. |
void |
endElement(String a,
String b,
String c)
|
TREXGrammar |
getResult()
obtains parsed grammar object only if parsing was successful. |
Grammar |
getResultAsGrammar()
gets the parsed AGM. |
String |
getTargetNamespace()
|
void |
startElement(String a,
String b,
String c,
Attributes d)
|
void |
wrapUp()
performs final wrap-up. |
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
---|
characters, endDocument, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final TREXBaseReader.StateFactory sfactory
public static final String ERR_MISSING_CHILD_NAMECLASS
public static final String ERR_MORE_THAN_ONE_NAMECLASS
public static final String ERR_UNDECLARED_PREFIX
public static final String ERR_UNDEFINED_PATTERN
public static final String ERR_UNKNOWN_DATATYPE_VOCABULARY
public static final String ERR_BAD_COMBINE
public static final String ERR_COMBINE_MISSING
public static final String WRN_COMBINE_IGNORED
public static final String WRN_OBSOLETED_XMLSCHEMA_NAMSPACE
public static final String ERR_DUPLICATE_DEFINITION
public static final String ERR_NONEXISTENT_PARENT_GRAMMAR
public static final String ERR_INTERLEAVED_STRING
public static final String ERR_SEQUENCED_STRING
public static final String ERR_REPEATED_STRING
public static final String ERR_INTERLEAVED_ANYSTRING
Constructor Detail |
---|
public TREXBaseReader(GrammarReaderController controller, SAXParserFactory parserFactory, ExpressionPool pool, TREXBaseReader.StateFactory stateFactory, State rootState)
Method Detail |
---|
public final TREXGrammar getResult()
public Grammar getResultAsGrammar()
GrammarReader
getResultAsGrammar
in class GrammarReader
public final String getTargetNamespace()
public State createExpressionChildState(State parent, StartTagInfo tag)
GrammarReader
createExpressionChildState
in class GrammarReader
public void wrapUp()
This method has to be called after the run-away expression check is done.
public void startElement(String a, String b, String c, Attributes d) throws SAXException
startElement
in interface ContentHandler
startElement
in class XMLFilterImpl
SAXException
public void endElement(String a, String b, String c) throws SAXException
endElement
in interface ContentHandler
endElement
in class XMLFilterImpl
SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |