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

public Interface JavaCompiler

extends JavaCompiler
Known Direct Implementers
com.sun.tools.jxc.api.impl.j2s.JavaCompilerImpl
Annotations
@SuppressWarnings:removal
Imports
java.util.Collection, .Map, javax.xml.namespace.QName, javax.annotation.processing.ProcessingEnvironment

References Deprecated

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

See corresponding docs for further information.

Java-to-Schema compiler.
Author
Kohsuke Kawaguchi ([email protected])

Method Summary

Modifier and TypeMethod and Description
public J2SJAXBModel

Returns:

Non-null if no error was reported. Otherwise null.
bind
(Collection<Reference>
The list of types that needs to be bound to XML. "root references" from JAX-RPC to JAXB is always in the form of (type,annotations) pair.
rootTypes
,
Map<QName, Reference>
Add element declarations for the specified element names to the XML types mapped from the corresponding References. Those References must be included in the rootTypes parameter. In this map, a Reference can be null, in which case the element name is declared to have an empty complex type. (<xs:element name='foo'><xs:complexType/></xs:element>) This parameter can be null, in which case the method behaves as if the empty map is given.
additionalElementDecls
,
ProcessingEnvironment
The caller supplied view to the annotated source code that JAXB is going to process.
source
,
String
If not-null, all the uses of the empty default namespace ("") will be replaced by this namespace URI.
defaultNamespaceRemap
)
References Deprecated J2SJAXBModel is deprecated or references (maybe indirectly) at least one deprecated element.

Compiles the given annotated Java source code.

Inherited from com.sun.tools.xjc.api.JavaCompiler:
bind

Method Detail

bindback to summary
public J2SJAXBModel bind(Collection<Reference> rootTypes, Map<QName, Reference> additionalElementDecls, ProcessingEnvironment source, String defaultNamespaceRemap)

References Deprecated

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

See corresponding docs for further information.

Compiles the given annotated Java source code.

This operation takes a set of "root types", then compute the list of all the types that need to be bound by forming a transitive reflexive closure of types that are referenced by the root types.

Errors will be sent to javax.annotation.processing.ProcessingEnvironment#getMessager().

Parameters
rootTypes:Collection<Reference>

The list of types that needs to be bound to XML. "root references" from JAX-RPC to JAXB is always in the form of (type,annotations) pair.

additionalElementDecls:Map<QName, Reference>

Add element declarations for the specified element names to the XML types mapped from the corresponding References. Those References must be included in the rootTypes parameter. In this map, a Reference can be null, in which case the element name is declared to have an empty complex type. (<xs:element name='foo'><xs:complexType/></xs:element>) This parameter can be null, in which case the method behaves as if the empty map is given.

source:ProcessingEnvironment

The caller supplied view to the annotated source code that JAXB is going to process.

defaultNamespaceRemap:String

If not-null, all the uses of the empty default namespace ("") will be replaced by this namespace URI.

Returns:J2SJAXBModel

Non-null if no error was reported. Otherwise null.