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

public Interface J2SJAXBModel

extends JAXBModel
Known Direct Subinterfaces
com.sun.tools.jxc.api.J2SJAXBModel
Annotations
@Deprecated
since:4.0
forRemoval:true
@SuppressWarnings:removal
Imports
jakarta.xml.bind.SchemaOutputResolver, javax.annotation.processing.ProcessingEnvironment, javax.xml.namespace.QName, javax.xml.transform.Result, java.io.IOException, java.util.Collection, .Map

Deprecated

for removal since 4.0.

Use com.sun.tools.jxc.api.J2SJAXBModel instead.

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
)

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)

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, String, ProcessingEnvironment).
getXmlTypeName
(Reference
must not be null. This must be one of the References specified in the JavaCompiler#bind(Collection, Map, String, ProcessingEnvironment) method.
javaType
)
References Deprecated Reference is deprecated or references (maybe indirectly) at least one deprecated element.

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

Inherited from com.sun.tools.xjc.api.JAXBModel:
getClassList

Method Detail

generateEpisodeFileback to summary
public void generateEpisodeFile(Result output)

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

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)

References Deprecated

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

See corresponding docs for further information.

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, String, ProcessingEnvironment) method.

Returns:QName

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

Exceptions
IllegalArgumentException:
if the parameter is null