Top Description Fields Constructors Methods
org.glassfish.jaxb.runtime.v2.schemagen

pack-priv final Class FoolProofResolver

extends SchemaOutputResolver
Class Inheritance
Imports
org.glassfish.jaxb.core.Utils, jakarta.xml.bind.SchemaOutputResolver, javax.xml.transform.Result, java.io.IOException, java.util.logging.Logger

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.

Field Summary

Modifier and TypeField and Description
private static final Logger
private final SchemaOutputResolver

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Result
createOutput(String namespaceUri, String suggestedFileName)

Implements abstract jakarta.xml.bind.SchemaOutputResolver.createOutput.

Decides where the schema file (of the given namespace URI) will be written, and return it as a Result object.

Field Detail

loggerback to summary
private static final Logger logger
resolverback to summary
private final SchemaOutputResolver resolver

Constructor Detail

FoolProofResolverback to summary
public FoolProofResolver(SchemaOutputResolver resolver)

Method Detail

createOutputback to summary
public Result createOutput(String namespaceUri, String suggestedFileName) throws IOException

Implements abstract jakarta.xml.bind.SchemaOutputResolver.createOutput.

Doc from jakarta.xml.bind.SchemaOutputResolver.createOutput.

Decides where the schema file (of the given namespace URI) will be written, and return it as a Result object.

This method is called only once for any given namespace. IOW, all the components in one namespace is always written into the same schema document.

Annotations
@Override