org.apache.axis.wsdl.gen

Class Parser

public class Parser extends Object

This is a class with no documentation.
Field Summary
protected booleandebug
Field debug
protected booleanimports
Field imports
protected booleannowrap
Field nowrap
protected Stringpassword
Field password
protected booleanquiet
Field quiet
protected Stringusername
Field username
protected booleanverbose
Field verbose
protected booleanwrapArrays
If this is false, we'll prefer "String[]" to "ArrayOfString" for literal wrapped arrays
Method Summary
DefinitiongetCurrentDefinition()
Return the current definition.
GeneratorFactorygetFactory()
Method getFactory
StringgetPassword()
Method getPassword
SymbolTablegetSymbolTable()
Get the symbol table.
longgetTimeout()
Return the current timeout setting
StringgetUsername()
Method getUsername
StringgetWSDLURI()
Get the current WSDL URI.
booleanisDebug()
Method isDebug
booleanisImports()
Method isImports
booleanisNowrap()
Method isNowrap
booleanisQuiet()
Method isQuiet
booleanisVerbose()
Method isVerbose
voidrun(String wsdlURI)
Parse a WSDL at a given URL.
voidrun(String context, Document doc)
Call this method if your WSDL document has already been parsed as an XML DOM document.
protected voidsanityCheck(SymbolTable symbolTable)
Method sanityCheck
voidsetDebug(boolean debug)
Method setDebug
voidsetFactory(GeneratorFactory factory)
Method setFactory
voidsetImports(boolean imports)
Method setImports
voidsetNowrap(boolean nowrap)
Method setNowrap
voidsetPassword(String password)
Method setPassword
voidsetQuiet(boolean quiet)
Method setQuiet
voidsetTimeout(long timeout)
Set the timeout, in milliseconds
voidsetUsername(String username)
Method setUsername
voidsetVerbose(boolean verbose)
Method setVerbose

Field Detail

debug

protected boolean debug
Field debug

imports

protected boolean imports
Field imports

nowrap

protected boolean nowrap
Field nowrap

password

protected String password
Field password

quiet

protected boolean quiet
Field quiet

username

protected String username
Field username

verbose

protected boolean verbose
Field verbose

wrapArrays

protected boolean wrapArrays
If this is false, we'll prefer "String[]" to "ArrayOfString" for literal wrapped arrays

Method Detail

getCurrentDefinition

public Definition getCurrentDefinition()
Return the current definition. The current definition is null until run is called.

Returns:

getFactory

public GeneratorFactory getFactory()
Method getFactory

Returns:

getPassword

public String getPassword()
Method getPassword

Returns:

getSymbolTable

public SymbolTable getSymbolTable()
Get the symbol table. The symbol table is null until run is called.

Returns:

getTimeout

public long getTimeout()
Return the current timeout setting

Returns:

getUsername

public String getUsername()
Method getUsername

Returns:

getWSDLURI

public String getWSDLURI()
Get the current WSDL URI. The WSDL URI is null until run is called.

Returns:

isDebug

public boolean isDebug()
Method isDebug

Returns:

isImports

public boolean isImports()
Method isImports

Returns:

isNowrap

public boolean isNowrap()
Method isNowrap

Returns:

isQuiet

public boolean isQuiet()
Method isQuiet

Returns:

isVerbose

public boolean isVerbose()
Method isVerbose

Returns:

run

public void run(String wsdlURI)
Parse a WSDL at a given URL.

This method will time out after the number of milliseconds specified by our timeoutms member.

Parameters: wsdlURI

Throws: Exception

run

public void run(String context, Document doc)
Call this method if your WSDL document has already been parsed as an XML DOM document.

Parameters: 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.

Throws: IOException SAXException WSDLException ParserConfigurationException

sanityCheck

protected void sanityCheck(SymbolTable symbolTable)
Method sanityCheck

Parameters: symbolTable

setDebug

public void setDebug(boolean debug)
Method setDebug

Parameters: debug

setFactory

public void setFactory(GeneratorFactory factory)
Method setFactory

Parameters: factory

setImports

public void setImports(boolean imports)
Method setImports

Parameters: imports

setNowrap

public void setNowrap(boolean nowrap)
Method setNowrap

Parameters: nowrap

setPassword

public void setPassword(String password)
Method setPassword

Parameters: password

setQuiet

public void setQuiet(boolean quiet)
Method setQuiet

Parameters: quiet

setTimeout

public void setTimeout(long timeout)
Set the timeout, in milliseconds

Parameters: timeout

setUsername

public void setUsername(String username)
Method setUsername

Parameters: username

setVerbose

public void setVerbose(boolean verbose)
Method setVerbose

Parameters: verbose

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.