Package com.sun.tools.xjc.api
Class XJC
java.lang.Object
com.sun.tools.xjc.api.XJC
Entry point to the programatic API to access
schema compiler (XJC) and schema generator (schemagen).
- Author:
- Kohsuke Kawaguchi ([email protected])
-
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaCompiler
Gets a freshSchemaCompiler
.static String
getDefaultPackageName
(String namespaceUri) Computes the namespaceURI -> package name
conversion as specified by the JAXB spec.
-
Method Details
-
createSchemaCompiler
Gets a freshSchemaCompiler
.- Returns:
- always return non-null object.
-
getDefaultPackageName
Computes the namespaceURI -> package name
conversion as specified by the JAXB spec.- Parameters:
namespaceUri
- Namespace URI. Can be empty, but must not be null.- 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.)
-