| com.sun.tools.xjc.api.JavaCompiler
All known Subclasses: com.sun.tools.xjc.api.impl.j2s.JavaCompilerImpl,
JavaCompiler | public interface JavaCompiler (Code) | | Java-to-Schema compiler.
author: Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com) |
Method Summary | |
J2SJAXBModel | bind(Collection<Reference> rootTypes, Map<QName, Reference> additionalElementDecls, String defaultNamespaceRemap, AnnotationProcessorEnvironment source) 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
AnnotationProcessorEnvironment.getMessager .
Parameters: rootTypes - 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. Parameters: additionalElementDecls - Add element declarations for the specified element names tothe 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 isdeclared 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. Parameters: defaultNamespaceRemap - If not-null, all the uses of the empty default namespace ("") willbe replaced by this namespace URI. Parameters: source - The caller supplied view to the annotated source code that JAXB is going to process.Non-null if no error was reported. |
bind | J2SJAXBModel bind(Collection<Reference> rootTypes, Map<QName, Reference> additionalElementDecls, String defaultNamespaceRemap, AnnotationProcessorEnvironment source)(Code) | | 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
AnnotationProcessorEnvironment.getMessager .
Parameters: rootTypes - 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. Parameters: additionalElementDecls - Add element declarations for the specified element names tothe 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 isdeclared 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. Parameters: defaultNamespaceRemap - If not-null, all the uses of the empty default namespace ("") willbe replaced by this namespace URI. Parameters: source - The caller supplied view to the annotated source code that JAXB is going to process.Non-null if no error was reported. Otherwise null. |
|
|