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

com.sun.msv.reader.xmlschema.RootIncludedSchemaState Maven / Gradle / Ivy

There is a newer version: 2.2.5.1
Show newest version
/*
 * @(#)$Id: RootIncludedSchemaState.java,v 1.6 2003/06/09 20:37:34 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 Kohsuke KAWAGUCHI
 */
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;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy