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

public final Class XJC

extends Object
Class Inheritance
Imports
com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl, org.glassfish.jaxb.core.api.impl.NameConverter

Entry point to the programatic API to access schema compiler (XJC) and schema generator (schemagen).
Author
Kohsuke Kawaguchi ([email protected])

Constructor Summary

AccessConstructor and Description
private
XJC()

Method Summary

Modifier and TypeMethod and Description
public static SchemaCompiler

Returns:

always return non-null object.
createSchemaCompiler
()

Gets a fresh SchemaCompiler.

public static String

Returns:

A Java package name (e.g., "foo.bar"). "" to represent the root package. This method returns null if the method fails to derive the package name (there are certain namespace URIs with which this algorithm does not work --- such as ":::" as the URI.)
getDefaultPackageName
(String
Namespace URI. Can be empty, but must not be null.
namespaceUri
)

Computes the namespace URI -> package name conversion as specified by the JAXB spec.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

XJCback to summary
private XJC()

Method Detail

createSchemaCompilerback to summary
public static SchemaCompiler createSchemaCompiler()

Gets a fresh SchemaCompiler.

Returns:SchemaCompiler

always return non-null object.

getDefaultPackageNameback to summary
public static String getDefaultPackageName(String namespaceUri)

Computes the namespace URI -> package name conversion as specified by the JAXB spec.

Parameters
namespaceUri:String

Namespace URI. Can be empty, but must not be null.

Returns:String

A Java package name (e.g., "foo.bar"). "" to represent the root package. This method returns null if the method fails to derive the package name (there are certain namespace URIs with which this algorithm does not work --- such as ":::" as the URI.)