|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jdeveloper.webservices.StubSkelModel
This class provides a public API for generating web service stubs and
skeletons.
The most simple use case is to create a new stub, based on an existing
WSDL document. To do this, instantiate the StubSkelModel as follows:
StubSkelModel model = new StubSkelModel(wsdlDoc);
where wsdlDoc is the URL of the WSDL document from which to generate the
stub. All of the properties (available on the Stub/Skeleton wizard) will
initially be defaulted to the values described in the accessor methods on
this class. These default values may be overwritten using the accessors.
When you are ready to create the stub, call commit() on the StubSkelModel.
Calling:
model.commit(false);
will result in generation occurring without any UI interaction.
Alternatively, you can call:
model.commit(true);
and the stub/skeleton wizard will be invoked, to allow UI interaction
before completion.
Constructor Summary | |
StubSkelModel(java.net.URL wsdlDoc)
Create a StubSkelModel. |
Method Summary | |
void |
commit(boolean showUI)
Commit changes to the model and generates stubs/skeletons. |
static void |
generateEmbeddedStub(oracle.jdevimpl.webservices.ide.WebServicesContainer wsCont)
Generate a stub for use against a web service (described by the given WebServicesContainer) running on the embedded OC4J server. |
java.lang.String |
getDefaultPackage()
Get the default package into which stubs, skeletons and beans will be generated. |
StubSkelArtifact[] |
getGeneratedArtifacts()
Get the artifacts generated by the stub/skeleton wizard. |
java.net.URL |
getWSDLFileLocation()
Get the location of the WSDL file which this StubSkelModel is based on. |
boolean |
isGenAuthCode()
Is basic HTTP authentication code generation selected? |
boolean |
isGenMainMethod()
Is main method generation selected? |
boolean |
isGenSkeletons()
Is skeleton generation selected? |
boolean |
isGenStubs()
Is stub generation selected? |
boolean |
isImportWSDLFile()
Is WSDL file import selected? |
void |
setDefaultPackage(java.lang.String defaultPackage)
Set the default package into which stubs, skeletons and beans will be generated. |
void |
setGenAuthCode(boolean genAuthCode)
Set whether basic HTTP authentication code should be generated into the stub. |
void |
setGenMainMethod(boolean genMainMethod)
Set whether a main method (plus stub object instantiation) should be generated into the stub. |
void |
setGenSkeletons(boolean genSkeletons)
Set whether to generate skeletons or not. |
void |
setGenStubs(boolean genStubs)
Set whether to generate stubs or not. |
void |
setImportWSDLFile(boolean importWSDLFile)
Set whether to import the WSDL file using for generation into the navigator as a node. |
void |
setOpenFiles(boolean openFiles)
Set whether you want the web services log window to appear, and the generated files to be opened. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StubSkelModel(java.net.URL wsdlDoc)
Method Detail |
public java.net.URL getWSDLFileLocation()
public void setGenAuthCode(boolean genAuthCode)
public boolean isGenAuthCode()
public void setGenStubs(boolean genStubs)
public boolean isGenStubs()
public void setGenSkeletons(boolean genSkeletons)
public boolean isGenSkeletons()
public void setGenMainMethod(boolean genMainMethod)
public boolean isGenMainMethod()
public void setImportWSDLFile(boolean importWSDLFile)
public boolean isImportWSDLFile()
public void setDefaultPackage(java.lang.String defaultPackage)
public java.lang.String getDefaultPackage()
public void setOpenFiles(boolean openFiles)
public StubSkelArtifact[] getGeneratedArtifacts()
public static void generateEmbeddedStub(oracle.jdevimpl.webservices.ide.WebServicesContainer wsCont)
public void commit(boolean showUI) throws java.lang.Exception
java.lang.Exception
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.