com.sun.xml.bind.v2.schemagen
Class FoolProofResolver

java.lang.Object
  extended by javax.xml.bind.SchemaOutputResolver
      extended by com.sun.xml.bind.v2.schemagen.FoolProofResolver

final class FoolProofResolver
extends SchemaOutputResolver

SchemaOutputResolver that wraps the user-specified resolver and makes sure that it's following the contract.

This protects the rest of the XmlSchemaGenerator from client programming error.


Constructor Summary
FoolProofResolver(SchemaOutputResolver resolver)
           
 
Method Summary
 Result createOutput(String namespaceUri, String suggestedFileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FoolProofResolver

public FoolProofResolver(SchemaOutputResolver resolver)
Method Detail

createOutput

public Result createOutput(String namespaceUri,
                           String suggestedFileName)
                    throws IOException
Specified by:
createOutput in class SchemaOutputResolver
Throws:
IOException