Top Description Methods
com.sun.tools.jxc.api

public Interface J2SJAXBModel

extends J2SJAXBModel
Known Direct Implementers
com.sun.tools.jxc.api.impl.j2s.JAXBModelImpl
Annotations
@SuppressWarnings:removal
Imports
java.io.IOException, java.util.Collection, .Map, com.sun.tools.xjc.api.ErrorListener, .JAXBModel, jakarta.xml.bind.SchemaOutputResolver, javax.annotation.processing.ProcessingEnvironment, javax.xml.namespace.QName, javax.xml.transform.Result

References Deprecated

J2SJAXBModel is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

JAXBModel that exposes additional information available only for the java -> schema direction.
Author
Kohsuke Kawaguchi

Method Summary

Modifier and TypeMethod and Description
public void
generateEpisodeFile(Result
This receives the generated episode file.
output
)

Redeclares com.sun.tools.xjc.api.J2SJAXBModel.generateEpisodeFile.

Generates the episode file from the model.

public void
generateSchema(SchemaOutputResolver
this object controls the output to which schemas will be sent.
outputResolver
,
ErrorListener errorListener)

Redeclares com.sun.tools.xjc.api.J2SJAXBModel.generateSchema.

Generates the schema documents from the model.

public QName

Returns:

null if it is not a part of the input to JavaCompiler#bind(Collection, Map, ProcessingEnvironment, String).
getXmlTypeName
(Reference
must not be null. This must be one of the References specified in the JavaCompiler#bind(Collection, Map, ProcessingEnvironment, String) method.
javaType
)

Returns the name of the XML Type bound to the specified Java type.

Inherited from com.sun.tools.xjc.api.J2SJAXBModel:
getXmlTypeName

Method Detail

generateEpisodeFileback to summary
public void generateEpisodeFile(Result output)

Redeclares com.sun.tools.xjc.api.J2SJAXBModel.generateEpisodeFile.

Generates the episode file from the model.

The "episode file" is really just a JAXB customization file (but with vendor extensions, at this point), that can be used later with a schema compilation to support separate compilation.

Parameters
output:Result

This receives the generated episode file.

Since
2.1
generateSchemaback to summary
public void generateSchema(SchemaOutputResolver outputResolver, ErrorListener errorListener) throws IOException

Redeclares com.sun.tools.xjc.api.J2SJAXBModel.generateSchema.

Generates the schema documents from the model.

Parameters
outputResolver:SchemaOutputResolver

this object controls the output to which schemas will be sent.

Exceptions
IOException:
if SchemaOutputResolver throws an IOException.
getXmlTypeNameback to summary
public QName getXmlTypeName(Reference javaType)

Returns the name of the XML Type bound to the specified Java type.

Parameters
javaType:Reference

must not be null. This must be one of the References specified in the JavaCompiler#bind(Collection, Map, ProcessingEnvironment, String) method.

Returns:QName

null if it is not a part of the input to JavaCompiler#bind(Collection, Map, ProcessingEnvironment, String).

Exceptions
IllegalArgumentException:
if the parameter is null