public class Generator
extends java.lang.Object
Constructor and Description |
---|
Generator(Reference serviceRef)
Constructor.
|
Generator(Reference serviceRef,
java.lang.String serviceClassName)
Constructor.
|
Generator(java.lang.String serviceUri)
Constructor.
|
Generator(java.lang.String serviceUri,
java.lang.String serviceClassName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
generate(java.io.File outputDir)
Generates the client code to the given output directory.
|
void |
generate(java.lang.String outputDir)
Generates the client code to the given output directory.
|
static void |
main(java.lang.String[] args)
Takes two (or three) parameters:
The URI of the OData service The output directory (optional, used the current directory by default) The name of the generated service class name (optional) |
public Generator(Reference serviceRef)
serviceRef
- The URI of the OData service.public Generator(Reference serviceRef, java.lang.String serviceClassName)
serviceRef
- The URI of the OData service.serviceClassName
- The name of the service class (in case there is only one in
the metadata).public Generator(java.lang.String serviceUri)
serviceUri
- The URI of the OData service.public Generator(java.lang.String serviceUri, java.lang.String serviceClassName)
serviceUri
- The URI of the OData service.serviceClassName
- The name of the service class (in case there is only one in
the metadata).public static void main(java.lang.String[] args)
args
- The list of arguments.public void generate(java.io.File outputDir) throws java.lang.Exception
outputDir
- The output directory.java.lang.Exception
public void generate(java.lang.String outputDir) throws java.lang.Exception
outputDir
- The output directory.java.lang.Exception
Copyright © 2005-2020 Restlet.