|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis.wsdl.gen.Parser org.apache.axis.wsdl.toJava.Emitter
This class produces java files for stubs, skeletons, and types from a WSDL document.
Field Summary | |
protected BaseTypeMapping |
baseTypeMapping
|
static String |
DEFAULT_NSTOPKG_FILE
|
protected HashMap |
namespaceMap
|
protected Namespaces |
namespaces
|
protected String |
NStoPkgFilename
|
protected String |
typeMappingVersion
|
Fields inherited from class org.apache.axis.wsdl.gen.Parser |
debug, imports, nowrap, password, username, verbose |
Constructor Summary | |
Emitter()
Default constructor. |
Method Summary | |
void |
debug(boolean value)
Deprecated. Use setDebug(value) |
void |
deploySkeleton(boolean value)
Deprecated. Use setSkeletonWanted(value) |
void |
emit(String uri)
Deprecated. Call run(uri) instead. |
void |
emit(String context,
Document doc)
Deprecated. Call run(context, doc) instead. |
void |
generateAll(boolean all)
Deprecated. Use setAllWanted(all) |
void |
generateImports(boolean generateImports)
Deprecated. Use setImports(generateImports) |
void |
generateServerSide(boolean value)
Deprecated. Use setServerSide(value) |
void |
generateTestCase(boolean value)
Deprecated. Use setTestCaseWanted() |
boolean |
getDebug()
Deprecated. Use isDebug() |
boolean |
getDeploySkeleton()
Deprecated. Use isSkeletonWanted() |
List |
getGeneratedClassNames()
This method returns a list of all generated class names. |
GeneratedFileInfo |
getGeneratedFileInfo()
Returns an object which contains of information on all generated files including the class name, filename and a type string. |
List |
getGeneratedFileNames()
This method returns a list of all generated file names. |
boolean |
getGenerateServerSide()
Deprecated. Use isServerSide() |
boolean |
getHelperGeneration()
Deprecated. Use isHelperWanted() |
String |
getJavaName(javax.xml.namespace.QName qName)
Convert the specified QName into a full Java Name. |
HashMap |
getNamespaceMap()
Get the map of namespace -> Java package names |
Namespaces |
getNamespaces()
|
String |
getOutputDir()
Get the output directory to use for emitted source files |
String |
getPackage(javax.xml.namespace.QName qName)
Get the Package name for the specified QName |
String |
getPackage(String namespace)
Get the Package name for the specified namespace |
String |
getPackageName()
Get global package name to use instead of mapping namespaces |
Scope |
getScope()
Get the scope for the deploy.xml file. |
boolean |
getVerbose()
Deprecated. Use isVerbose() |
GeneratorFactory |
getWriterFactory()
Deprecated. Call getFactory instead. This doesn't return a WriterFactory, it returns a GeneratorFactory. |
boolean |
isAllWanted()
|
boolean |
isHelperWanted()
Indicate if we should be generating Helper classes |
boolean |
isServerSide()
Indicate if we should be emitting server side code and deploy/undeploy |
boolean |
isSkeletonWanted()
Indicate if we should be deploying skeleton or implementation |
boolean |
isTestCaseWanted()
|
void |
run(String wsdlURL)
Emit appropriate Java files for a WSDL at a given URL. |
void |
run(String context,
Document doc)
Call this method if your WSDL document has already been parsed as an XML DOM document. |
protected void |
sanityCheck(SymbolTable symbolTable)
|
void |
setAllWanted(boolean all)
By default, code is generated only for referenced elements. |
void |
setFactory(String factory)
Sets the WriterFactory Class to use |
void |
setHelperGeneration(boolean value)
Deprecated. Use setHelperWanted(value) |
void |
setHelperWanted(boolean value)
Turn on/off Helper class generation |
void |
setNamespaceMap(HashMap map)
Set a map of namespace -> Java package names |
void |
setNStoPkg(String NStoPkgFilename)
Set the NStoPkg mappings filename. |
void |
setOutputDir(String outputDir)
Set the output directory to use in emitted source files |
void |
setPackageName(String packageName)
Set a global package name to use instead of mapping namespaces |
void |
setScope(Scope scope)
Set the scope for the deploy.xml file. |
void |
setServerSide(boolean value)
Turn on/off server skeleton creation |
void |
setSkeletonWanted(boolean value)
Turn on/off server skeleton deploy |
void |
setTestCaseWanted(boolean value)
Turn on/off test case creation |
void |
setTypeMappingVersion(String typeMappingVersion)
|
void |
verbose(boolean value)
Deprecated. Use setVerbose(value) |
Methods inherited from class org.apache.axis.wsdl.gen.Parser |
getCurrentDefinition, getFactory, getPassword, getSymbolTable, getTimeout, getUsername, getWSDLURI, isDebug, isImports, isNowrap, isVerbose, setDebug, setFactory, setImports, setNowrap, setPassword, setTimeout, setUsername, setVerbose |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String DEFAULT_NSTOPKG_FILE
protected HashMap namespaceMap
protected String typeMappingVersion
protected BaseTypeMapping baseTypeMapping
protected Namespaces namespaces
protected String NStoPkgFilename
Constructor Detail |
public Emitter()
Method Detail |
public void setServerSide(boolean value)
value
- public boolean isServerSide()
public void setSkeletonWanted(boolean value)
value
- public boolean isSkeletonWanted()
public void setHelperWanted(boolean value)
value
- public boolean isHelperWanted()
public void setTestCaseWanted(boolean value)
value
- public boolean isTestCaseWanted()
public void setAllWanted(boolean all)
public boolean isAllWanted()
public Namespaces getNamespaces()
public void setOutputDir(String outputDir)
public String getOutputDir()
public String getPackageName()
public void setPackageName(String packageName)
public void setScope(Scope scope)
scope
- One of 'null',
Scope.APPLICATION, Scope.REQUEST, Scope.SESSION.
Anything else is equivalent to 'null' null and no explicit
scope tag will appear in deploy.xml.public Scope getScope()
public void setNStoPkg(String NStoPkgFilename)
public void setNamespaceMap(HashMap map)
public HashMap getNamespaceMap()
public void setFactory(String factory)
WriterFactory Class
to use
factory
- the name of the factory Class
public GeneratedFileInfo getGeneratedFileInfo()
GeneratedFileInfo
public List getGeneratedClassNames()
public List getGeneratedFileNames()
public String getPackage(String namespace)
public String getPackage(javax.xml.namespace.QName qName)
public String getJavaName(javax.xml.namespace.QName qName)
public void run(String wsdlURL) throws Exception
Exception
public void run(String context, Document doc) throws IOException, SAXException, javax.wsdl.WSDLException, ParserConfigurationException
context
- context This is directory context for the Document.
If the Document were from file "/x/y/z.wsdl" then the context
could be "/x/y" (even "/x/y/z.wsdl" would work).
If context is null, then the context becomes the current directory.doc
- doc This is the XML Document containing the WSDL.
IOException
SAXException
javax.wsdl.WSDLException
ParserConfigurationException
protected void sanityCheck(SymbolTable symbolTable)
sanityCheck
in class Parser
public void setTypeMappingVersion(String typeMappingVersion)
public GeneratorFactory getWriterFactory()
public void emit(String uri) throws Exception
uri
- wsdlURI the location of the WSDL file.
Exception
public void emit(String context, Document doc) throws IOException, SAXException, javax.wsdl.WSDLException, ParserConfigurationException
context
- context This is directory context for the Document.
If the Document were from file "/x/y/z.wsdl" then the context could be "/x/y"
(even "/x/y/z.wsdl" would work). If context is null, then the context
becomes the current directory.doc
- doc This is the XML Document containing the WSDL.
IOException
SAXException
javax.wsdl.WSDLException
ParserConfigurationException
public void generateServerSide(boolean value)
value
- public boolean getGenerateServerSide()
public void deploySkeleton(boolean value)
value
- public boolean getDeploySkeleton()
public void setHelperGeneration(boolean value)
value
- public boolean getHelperGeneration()
public void generateImports(boolean generateImports)
generateImports
- public void debug(boolean value)
value
- public boolean getDebug()
public void verbose(boolean value)
value
- public boolean getVerbose()
public void generateTestCase(boolean value)
value
- public void generateAll(boolean all)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |