XML Schema to Java Compiler

DESCRIPTION

xsd2java is the Novell exteNd Web Services SDK XML Schema to Java Beans compiler. The xsd2java compiler processes the complexTypes defined in the schema and produces Java Beans and their Marshalers for them.

SYNOPSIS

xsd2java [options] xsd-file(s)
where options include:
    -attributeQualified  overrides the schema attribute form and attributeFormDefault value
    -ds <directory>      destination directory for generated source files
    -elementQualified    overrides the schema element form and elementFormDefault value
    -help                print out this message
    -J<vm flag>          pass argument to the java interpreter
    -keep                do not delete generated source files
    -keepgenerated       same as -keep
    -nocompile           do not compile the generated source files
    -novalidate          generate code with no schema validation
    -nowarn              generate no warnings
    -nspkg <ns> <pkg>    map namespace ns to package pkg
    -package <pkg>       specify package for generated files
    -typemapping <file>  specify the type mapping file name
    -verbose             turn verbose mode on
    -version             show version and build information
    -olddatabinding      generate APIs similar to that generated by WSSDK 5.0
java-compiler options:
    -classpath <path>    specify where to find user class files
    -d <directory>       destination directory for classes
    -depend              make compiler consider compiling dependencies
    -g                   enable generation of debugging information
    -nowarn              generate no warnings from Java compiler
    -O                   generate optimized code

OPTIONS

-attributeQualified

Overrides the schema attribute form and attributeFormDefault value. Tells the compiler to make all attributes namespace qualified.

-ds <directory>

Output generated Java files to the specified directory. The directory will automatically be created if it doesn't exist. Depending on the package and nspkg flags additional directories may be created below this directory.

-elementQualified

Overrides the schema element form and elementFormDefault value. Tells the compiler to make all elements namespace qualified.

-help

Prints out the command syntax.

-J<vm flag>

Pass a flag to the jvm. As an example -J-Xms100m sets the maximum heap size to 100 MB when running xsd2java. This option can be used multiple times on the command line.

-keep

Does not delete generated java source files. If not used, the generated java files are deleted from the source directories.

-keepgenerated

Same as -keep.

-nocompile

Do not compile  Java source generated by rmi2soap into class files. Note that the xsd2java compiler will still compile the generated Java RMI interface.

-novalidate

     Generate code with no schema validation. If you use this flag, all the simpleType facets such as minOccurs, minInclusive, etc are ignored.

-nowarn

Do not print out warning messages. The xsd2java compiler was built to be tolerant towards malformed WSDL documents and it is therefore recommended that this flag is only used when the WSDL is known to be compliant to the WSDL 1.1 specification.

-nspkg <ns> <pkg>

Map the WSDL namespace ns to the Java package pkg. If different XML types, or XML types and WSDL portType's are defined in different namespaces, this option provides a flexible mechanism for mapping different namespaces to different Java packages. This option overrides the -package option. This option can be used multiple times on the command line.

-package <pkg>

Make pkg the default package for all generated Java interfaces, regardless of which namespace is used in the WSDL file. If the package or nspkg flags are not present, the xsd2java compiler will place generated Java files into a package derived from the targetNamespace of the WSDL document.

-typemapping <file>

Type mapping file name for already exisiting mappings. xsd2java will not generate Java beans for those XML types. Also it will not generate Java beans for types defined in xmlrpc.type.mappings if it exists.

-verbose

Print out details about the compilation. This includes information about type and package mappings.

-version

Print out the version and build information of Novell exteNd WSSDK.

JAVA COMPILER OPTIONS

-classpath <path>

Set the classpath available to the java compiler (javac) when compiling the generated Java files.

-d <directory>

Set the output directory for compiled class files. The directory will automatically be created if it doesn't exist. Depending on the package of the source file additional directories may be created below this directory.

-depend

Make the javac compiler consider dependencies.

-g

Enables generation of debugging information.

-nowarn

Do not generate warning messages from the javac compiler.

-O

Generates optimized code.



Copyright © 2003, 2004 Novell, Inc. All rights reserved. Copyright © 2001, 2002, 2003 SilverStream Software, LLC. All rights reserved.