Examples of TREXGrammar


Examples of com.sun.msv.grammar.trex.TREXGrammar

        /* Another thing; should we use a controller to get notified about
         * errors in parsing?
         */
        MyGrammarController ctrl = new MyGrammarController();
        TREXGrammar grammar = RELAXNGReader.parse(src, mSaxFactory, ctrl);
        if (grammar == null) {
            String msg = "Failed to load RelaxNG from '"+sysRef+"'";
            String emsg = ctrl.mErrorMsg;
            if (emsg != null) {
                msg = msg + ": "+emsg;
View Full Code Here

Examples of com.sun.msv.grammar.trex.TREXGrammar

        this.baseReader = baseReader;
        this.setContentHandler(baseReader);
    }
   
    public final IslandSchema getSchema() {
        TREXGrammar g = baseReader.getResult();
        if(g==null)        return null;
        else            return new TREXIslandSchema(g);
    }
View Full Code Here

Examples of com.sun.msv.grammar.trex.TREXGrammar

        }
        // <div>s in the <grammar> element is not available by default.
        public State divInGrammar( State parent, StartTagInfo tag ) { return null; }
       
        public TREXGrammar createGrammar( ExpressionPool pool, TREXGrammar parent ) {
            return new TREXGrammar(pool,parent);
        }
View Full Code Here

Examples of com.sun.msv.grammar.trex.TREXGrammar

                "ref","name");
            // recover by returning something that can be interpreted as Pattern
            return Expression.nullSet;
        }
       
        TREXGrammar grammar = ((TREXBaseReader)this.reader).grammar;
       
        if( parentRef ) {
            grammar = grammar.getParentGrammar();
           
            if( grammar==null ) {
                reader.reportError( TREXBaseReader.ERR_NONEXISTENT_PARENT_GRAMMAR );
                return Expression.nullSet;
                // recover by returning something that can be interpreted as Pattern
View Full Code Here

Examples of com.sun.msv.grammar.trex.TREXGrammar

*/
public class DTDReader implements DTDEventListener {
   
    public DTDReader( GrammarReaderController controller, ExpressionPool pool ) {
        this.controller = new Controller(controller);
        grammar = new TREXGrammar(pool);
    }
View Full Code Here

Examples of com.sun.msv.grammar.trex.TREXGrammar

        newGrammar = getReader().sfactory.createGrammar( reader.pool, previousGrammar );
        getReader().grammar = newGrammar;
    }

    public void endSelf() {
        final TREXGrammar grammar = getReader().grammar;
       
        // detect references to undefined pattterns
        reader.detectUndefinedOnes(
            grammar.namedPatterns, TREXBaseReader.ERR_UNDEFINED_PATTERN );
View Full Code Here

Examples of com.sun.msv.grammar.trex.TREXGrammar

        this.baseReader = baseReader;
        this.setContentHandler(baseReader);
    }
   
    public final IslandSchema getSchema() {
        TREXGrammar g = baseReader.getResult();
        if(g==null)        return null;
        else            return new TREXIslandSchema(g);
    }
View Full Code Here

Examples of com.sun.msv.grammar.trex.TREXGrammar

        /* Another thing; should we use a controller to get notified about
         * errors in parsing?
         */
        SAXParserFactory saxFactory = getSaxFactory();
        MyGrammarController ctrl = new MyGrammarController();
        TREXGrammar grammar = RELAXNGReader.parse(src, saxFactory, ctrl);
        if (grammar == null) {
            String msg = "Failed to load RelaxNG schema from '"+sysRef+"'";
            String emsg = ctrl.mErrorMsg;
            if (emsg != null) {
                msg = msg + ": "+emsg;
View Full Code Here

Examples of com.sun.msv.grammar.trex.TREXGrammar

        newGrammar = getReader().sfactory.createGrammar( reader.pool, previousGrammar );
        getReader().grammar = newGrammar;
    }

    public void endSelf() {
        final TREXGrammar grammar = getReader().grammar;
       
        // detect references to undefined pattterns
        reader.detectUndefinedOnes(
            grammar.namedPatterns, TREXBaseReader.ERR_UNDEFINED_PATTERN );
View Full Code Here

Examples of com.sun.msv.grammar.trex.TREXGrammar

        }
        // <div>s in the <grammar> element is not available by default.
        public State divInGrammar( State parent, StartTagInfo tag ) { return null; }
       
        public TREXGrammar createGrammar( ExpressionPool pool, TREXGrammar parent ) {
            return new TREXGrammar(pool,parent);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.