|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.wsdl.Emitter
This class produces java files for stubs, skeletons, and types from a WSDL document.
Field Summary | |
static byte |
APPLICATION_SCOPE
|
protected boolean |
bEmitSkeleton
|
protected boolean |
bEmitTestCase
|
protected boolean |
bGenerateImports
|
protected boolean |
bMessageContext
|
protected boolean |
bVerbose
|
protected java.util.ArrayList |
classList
|
protected javax.wsdl.Definition |
def
|
protected java.util.HashMap |
delaySetMap
|
protected org.w3c.dom.Document |
doc
|
protected java.util.ArrayList |
fileList
|
protected Namespaces |
namespaces
|
static byte |
NO_EXPLICIT_SCOPE
|
protected java.lang.String |
outputDir
|
protected java.lang.String |
packageName
|
static byte |
REQUEST_SCOPE
|
protected byte |
scope
|
static byte |
SESSION_SCOPE
|
protected SymbolTable |
symbolTable
|
protected WriterFactory |
writerFactory
|
Constructor Summary | |
Emitter(Emitter that)
Construct an Emitter that initially looks like the given Emitter. |
|
Emitter(WriterFactory writerFactory)
Default constructor. |
Method Summary | |
void |
dumpTypes()
Dump Types for debugging |
void |
emit(org.w3c.dom.Document doc)
Call this method if your WSDL document has already been parsed as an XML DOM document. |
void |
emit(java.lang.String uri)
Call this method if you have a uri for the WSDL document |
void |
generateImports(boolean generateImports)
Turn on/off generation of elements from imported files. |
void |
generateMessageContext(boolean value)
Turn on/off server Message Context parameter in skeleton |
void |
generateSkeleton(boolean value)
Turn on/off server skeleton creation |
void |
generateTestCase(boolean value)
Turn on/off test case creation |
javax.wsdl.Definition |
getCurrentDefinition()
Return the current definition |
java.util.List |
getGeneratedClassNames()
This method returns a list of all generated class names. |
java.util.List |
getGeneratedFileNames()
This method returns a list of all generated file names. |
boolean |
getGenerateSkeleton()
Indicate if we should be emitting server side code and deploy/undeploy |
boolean |
getMessageContext()
Is Message Context parm creation flag set |
Namespaces |
getNamespaces()
|
java.lang.String |
getOutputDir()
Get the output directory to use for emitted source files |
java.lang.String |
getPackageName()
Get global package name to use instead of mapping namespaces |
byte |
getScope()
Get the scope for the deploy.xml file. |
boolean |
getVerbose()
Return the status of the verbose switch |
void |
setNamespaceMap(java.util.HashMap map)
Set a map of namespace -> Java package names |
void |
setOutputDir(java.lang.String outputDir)
Set the output directory to use in emitted source files |
void |
setPackageName(java.lang.String packageName)
Set a global package name to use instead of mapping namespaces |
void |
setScope(byte scope)
Set the scope for the deploy.xml file. |
void |
verbose(boolean value)
Turn on/off verbose messages |
protected void |
writeTypes()
Generate bindings (classes and class holders) for the complex types. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte NO_EXPLICIT_SCOPE
public static final byte APPLICATION_SCOPE
public static final byte REQUEST_SCOPE
public static final byte SESSION_SCOPE
protected org.w3c.dom.Document doc
protected javax.wsdl.Definition def
protected boolean bEmitSkeleton
protected boolean bMessageContext
protected boolean bEmitTestCase
protected boolean bVerbose
protected boolean bGenerateImports
protected java.lang.String outputDir
protected java.lang.String packageName
protected byte scope
protected java.util.ArrayList classList
protected java.util.ArrayList fileList
protected Namespaces namespaces
protected java.util.HashMap delaySetMap
protected WriterFactory writerFactory
protected SymbolTable symbolTable
Constructor Detail |
public Emitter(WriterFactory writerFactory)
public Emitter(Emitter that)
Method Detail |
public void emit(java.lang.String uri) throws java.io.IOException, javax.wsdl.WSDLException
public void emit(org.w3c.dom.Document doc) throws java.io.IOException, javax.wsdl.WSDLException
public void dumpTypes()
public void generateSkeleton(boolean value)
boolean
- valuepublic boolean getGenerateSkeleton()
public void generateTestCase(boolean value)
boolean
- valuepublic void generateMessageContext(boolean value)
boolean
- valuepublic boolean getMessageContext()
public javax.wsdl.Definition getCurrentDefinition()
public void generateImports(boolean generateImports)
boolean
- generateImportspublic void verbose(boolean value)
boolean
- valuepublic boolean getVerbose()
public void setNamespaceMap(java.util.HashMap map)
public void setOutputDir(java.lang.String outputDir)
public java.lang.String getPackageName()
public void setPackageName(java.lang.String packageName)
public java.lang.String getOutputDir()
public void setScope(byte scope)
scope
- One of Emitter.NO_EXPLICIT_SCOPE, Emitter.APPLICATION_SCOPE, Emitter.REQUEST_SCOPE, Emitter.SESSION_SCOPE. Anything else is equivalent to NO_EXPLICIT_SCOPE and no explicit scope tag will appear in deploy.xml.public byte getScope()
public java.util.List getGeneratedClassNames()
public java.util.List getGeneratedFileNames()
protected void writeTypes() throws java.io.IOException
public Namespaces getNamespaces()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |