/*
 * @(#)$Id: XSTypeIncubator.java 1482 2003-01-09 21:02:04Z kk122374 $
 *
 * 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;
}
