public class Parser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
debug
Field debug
|
protected boolean |
imports
Field imports
|
protected boolean |
nowrap
Field nowrap
|
protected java.lang.String |
password
Field password
|
protected boolean |
quiet
Field quiet
|
protected java.lang.String |
username
Field username
|
protected boolean |
verbose
Field verbose
|
protected boolean |
wrapArrays
If this is false, we'll prefer "String[]" to "ArrayOfString" for literal wrapped arrays
|
Constructor and Description |
---|
Parser() |
Modifier and Type | Method and Description |
---|---|
javax.wsdl.Definition |
getCurrentDefinition()
Return the current definition.
|
GeneratorFactory |
getFactory()
Method getFactory
|
java.lang.String |
getPassword()
Method getPassword
|
SymbolTable |
getSymbolTable()
Get the symbol table.
|
long |
getTimeout()
Return the current timeout setting
|
java.lang.String |
getUsername()
Method getUsername
|
java.lang.String |
getWSDLURI()
Get the current WSDL URI.
|
boolean |
isDebug()
Method isDebug
|
boolean |
isImports()
Method isImports
|
boolean |
isNowrap()
Method isNowrap
|
boolean |
isQuiet()
Method isQuiet
|
boolean |
isVerbose()
Method isVerbose
|
void |
run(java.lang.String wsdlURI)
Parse a WSDL at a given URL.
|
void |
run(java.lang.String context,
org.w3c.dom.Document doc)
Call this method if your WSDL document has already been parsed as an XML DOM document.
|
protected void |
sanityCheck(SymbolTable symbolTable)
Method sanityCheck
|
void |
setDebug(boolean debug)
Method setDebug
|
void |
setFactory(GeneratorFactory factory)
Method setFactory
|
void |
setImports(boolean imports)
Method setImports
|
void |
setNowrap(boolean nowrap)
Method setNowrap
|
void |
setPassword(java.lang.String password)
Method setPassword
|
void |
setQuiet(boolean quiet)
Method setQuiet
|
void |
setTimeout(long timeout)
Set the timeout, in milliseconds
|
void |
setUsername(java.lang.String username)
Method setUsername
|
void |
setVerbose(boolean verbose)
Method setVerbose
|
protected boolean debug
protected boolean quiet
protected boolean imports
protected boolean verbose
protected boolean nowrap
protected java.lang.String username
protected java.lang.String password
protected boolean wrapArrays
public boolean isDebug()
public void setDebug(boolean debug)
debug
- public boolean isQuiet()
public void setQuiet(boolean quiet)
quiet
- public boolean isImports()
public void setImports(boolean imports)
imports
- public boolean isVerbose()
public void setVerbose(boolean verbose)
verbose
- public boolean isNowrap()
public void setNowrap(boolean nowrap)
nowrap
- public long getTimeout()
public void setTimeout(long timeout)
timeout
- public java.lang.String getUsername()
public void setUsername(java.lang.String username)
username
- public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- public GeneratorFactory getFactory()
public void setFactory(GeneratorFactory factory)
factory
- public SymbolTable getSymbolTable()
public javax.wsdl.Definition getCurrentDefinition()
public java.lang.String getWSDLURI()
public void run(java.lang.String wsdlURI) throws java.lang.Exception
wsdlURI
- java.lang.Exception
public void run(java.lang.String context, org.w3c.dom.Document doc) throws java.io.IOException, org.xml.sax.SAXException, javax.wsdl.WSDLException, javax.xml.parsers.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.java.io.IOException
org.xml.sax.SAXException
javax.wsdl.WSDLException
javax.xml.parsers.ParserConfigurationException
protected void sanityCheck(SymbolTable symbolTable)
symbolTable
- Copyright © 2005 Apache Web Services Project. All Rights Reserved.