radadrgen - code generator
radadrgen [-h] [-d DIRECTORY] [-k] -l {c,java,python,python27,python35} -s {client,server} [-v] adr
The radadrgen command is the ADR IDL processing tool. It may be used to generate language bindings for RAD client or server implementations.
All invocations validate the given document against the ADR schema.
The following options are supported:
Shows the help message and exits.
Specifies an output directory. If none is specified, the current directory is used.
Does not overwrite the existing output. If this flag is not specified, radadrgen will over-write the existing output files.
Specifies the language for which bindings should be generated. The list of supported languages (for both client and server side) is present in the help message.
Specifies whether bindings should be generated for server-side (skeleton) implementation or client-side (stub).
Reports written filenames.
A private option to switch between a legacy Java method naming scheme where interface property and struct field accessors are named e.g. (get|set)Propertywithlongname() and a camel case one where the same method would be (get|set)PropertyWithLongName().
When omitted, legacy is the default.
The following operand must be specified on the command line:
The path to the API specification for which type and interface definitions must be generated.
The following command generates server-side implementation for an adr file, myapi.adr, into the directory server/c:
$ radadrgen -s server -l c -d server/c myapi.adr
On success, the output directory contains the myapi_impl.c file, a header file, and a mapfile.
Example 2 Generating Python Client BindingsThe following command generates Python client-side bindings for an adr file, myapi.adr, into the directory client/python:
$ radadrgen -s client -l python27 -d client/python myapi.adr
On success, the output directory structure includes the Python client module myapi.py under com/oracle/solaris/rad/.
Example 3 Generating Java Client BindingsThe following command generates Java client-side bindings for an adr file, myapi.adr, into the directory client/java:
$ radadrgen -s client -l java -d client/java myapi.adr
On success, the output directory structure includes a set of .java files for the interfaces defined in the API under com/oracle/solaris/rad/myapi.
The core ADR RelaxNG schema definition.
The ADR RelaxNG schema definition for documentation elements.
See attributes(7) for descriptions of the following attributes:
|