org.apache.axis.wsdl.gen

Class Parser

Known Direct Subclasses:
Emitter

public class Parser
extends java.lang.Object

This is a class with no documentation.

Field Summary

protected boolean
debug
Field debug
protected boolean
imports
Field imports
protected boolean
nowrap
Field nowrap
protected String
password
Field password
protected boolean
quiet
Field quiet
protected 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

Method Summary

Definition
getCurrentDefinition()
Return the current definition.
GeneratorFactory
getFactory()
Method getFactory
String
getPassword()
Method getPassword
SymbolTable
getSymbolTable()
Get the symbol table.
long
getTimeout()
Return the current timeout setting
String
getUsername()
Method getUsername
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(String wsdlURI)
Parse 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)
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(String password)
Method setPassword
void
setQuiet(boolean quiet)
Method setQuiet
void
setTimeout(long timeout)
Set the timeout, in milliseconds
void
setUsername(String username)
Method setUsername
void
setVerbose(boolean verbose)
Method setVerbose

Field Details

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 Details

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)
            throws Exception
Parse a WSDL at a given URL.

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

Parameters:
wsdlURI -

run

public void run(String context,
                Document doc)
            throws IOException,
                   SAXException,
                   WSDLException,
                   ParserConfigurationException
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.

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 © 2005 Apache Web Services Project. All Rights Reserved.