/*
 * @(#)$Id: XSTypeIncubator.java,v 1.4 2003/01/09 21:00:06 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.datatype.xsd;

import org.relaxng.datatype.DatatypeException;
import org.relaxng.datatype.ValidationContext;

/**
 * Interface for the type incubator.
 * <p>
 * One layer of abstraction is necessary
 * to support the lazy type construction.
 */
public interface XSTypeIncubator
{
    void addFacet( String name, String value, boolean fixed, ValidationContext context )
         throws DatatypeException;
    
    XSDatatypeExp derive( String newTypeNameUri, String newLocalName )
        throws DatatypeException;
}
