/*
* @(#)$Id: RootIncludedSchemaState.java,v 1.5 2002/02/23 22:49:38 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.reader.xmlschema;
import com.sun.msv.reader.SimpleState;
import com.sun.msv.reader.State;
import com.sun.msv.util.StartTagInfo;
/**
* used to parse root of schema document.
*
* @author <a href="mailto:kohsuke.kawaguchi@eng.sun.com">Kohsuke KAWAGUCHI</a>
*/
public class RootIncludedSchemaState extends SimpleState {
protected State topLevelState;
public RootIncludedSchemaState( State topLevelState ) {
this.topLevelState = topLevelState;
}
protected State createChildState( StartTagInfo tag ) {
if(tag.localName.equals("schema"))
return topLevelState;
return null;
}
}