|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.ext.odata.Generator
public class Generator
Code generator for accessing OData services. The generator use metadata exposed by an online service to generate client-side artifacts facilitating the execution of queries on the available entities.
Constructor Summary | |
---|---|
Generator(Reference serviceRef)
Constructor. |
|
Generator(Reference serviceRef,
String serviceClassName)
Constructor. |
|
Generator(String serviceUri)
Constructor. |
|
Generator(String serviceUri,
String serviceClassName)
Constructor. |
Method Summary | |
---|---|
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) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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).Method Detail |
---|
public static void main(String[] args)
args
- The list of arguments.public void generate(File outputDir) throws Exception
outputDir
- The output directory.
Exception
public void generate(String outputDir) throws Exception
outputDir
- The output directory.
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |