All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.msv.relaxns.reader.RootGrammarMergeState Maven / Gradle / Ivy

There is a newer version: 2.2.5.1
Show newest version
/*
 * @(#)$Id: RootGrammarMergeState.java,v 1.5 2003/06/09 20:37:37 kk122374 Exp $
 *
 * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
 * 
 * This software is the proprietary information of Sun Microsystems, Inc.  
 * Use is subject to license terms.
 * 
 */
package com.sun.msv.relaxns.reader;

import com.sun.msv.reader.SimpleState;
import com.sun.msv.reader.State;
import com.sun.msv.util.StartTagInfo;

/**
 * invokes State object that parses the document element.
 * 
 * this state is used for parsing included grammar.
 * 
 * @author Kohsuke KAWAGUCHI
 */
class RootGrammarMergeState extends SimpleState
{
    protected State createChildState( StartTagInfo tag ) {
        if(tag.localName.equals("grammar"))
            return new GrammarState();
        
        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy