public class Generator extends Object
Constructor and Description |
---|
Generator(Reference serviceRef)
Constructor.
|
Generator(Reference serviceRef,
String serviceClassName)
Constructor.
|
Generator(String serviceUri)
Constructor.
|
Generator(String serviceUri,
String serviceClassName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
generate(File outputDir)
Generates the client code to the given output directory.
|
void |
generate(String outputDir)
Generates the client code to the given output directory.
|
static void |
main(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, 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(String serviceUri)
serviceUri
- The URI of the OData service.public Generator(String serviceUri, 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(String[] args)
args
- The list of arguments.public void generate(File outputDir) throws Exception
outputDir
- The output directory.Exception
Copyright © 2005–2014. All rights reserved.