if( isLateBind() )
return new LazyTypeIncubator(this,ownerState.reader);
// normal incubator
return new XSTypeIncubator() {
private final TypeIncubator core = new TypeIncubator(dt);
public void addFacet( String name, String value, boolean fixed, ValidationContext context ) throws DatatypeException {
core.addFacet(name,value,fixed,context);
}
public XSDatatypeExp derive(String uri,String localName) throws DatatypeException {
return new XSDatatypeExp( core.derive(uri,localName), pool );
}
};
}