Package org.apache.axis.wsdl.gen
Class Parser
- java.lang.Object
-
- org.apache.axis.wsdl.gen.Parser
-
- Direct Known Subclasses:
Emitter
public class Parser extends java.lang.ObjectThis is a class with no documentation.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleandebugField debugprotected booleanimportsField importsprotected booleannowrapField nowrapprotected java.lang.StringpasswordField passwordprotected booleanquietField quietprotected java.lang.StringusernameField usernameprotected booleanverboseField verboseprotected booleanwrapArraysIf this is false, we'll prefer "String[]" to "ArrayOfString" for literal wrapped arrays
-
Constructor Summary
Constructors Constructor Description Parser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.wsdl.DefinitiongetCurrentDefinition()Return the current definition.GeneratorFactorygetFactory()Method getFactoryjava.lang.StringgetPassword()Method getPasswordSymbolTablegetSymbolTable()Get the symbol table.longgetTimeout()Return the current timeout settingjava.lang.StringgetUsername()Method getUsernamejava.lang.StringgetWSDLURI()Get the current WSDL URI.booleanisDebug()Method isDebugbooleanisImports()Method isImportsbooleanisNowrap()Method isNowrapbooleanisQuiet()Method isQuietbooleanisVerbose()Method isVerbosevoidrun(java.lang.String wsdlURI)Parse a WSDL at a given URL.voidrun(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 voidsanityCheck(SymbolTable symbolTable)Method sanityCheckvoidsetDebug(boolean debug)Method setDebugvoidsetFactory(GeneratorFactory factory)Method setFactoryvoidsetImports(boolean imports)Method setImportsvoidsetNowrap(boolean nowrap)Method setNowrapvoidsetPassword(java.lang.String password)Method setPasswordvoidsetQuiet(boolean quiet)Method setQuietvoidsetTimeout(long timeout)Set the timeout, in millisecondsvoidsetUsername(java.lang.String username)Method setUsernamevoidsetVerbose(boolean verbose)Method setVerbose
-
-
-
Field Detail
-
debug
protected boolean debug
Field debug
-
quiet
protected boolean quiet
Field quiet
-
imports
protected boolean imports
Field imports
-
verbose
protected boolean verbose
Field verbose
-
nowrap
protected boolean nowrap
Field nowrap
-
username
protected java.lang.String username
Field username
-
password
protected java.lang.String password
Field password
-
wrapArrays
protected boolean wrapArrays
If this is false, we'll prefer "String[]" to "ArrayOfString" for literal wrapped arrays
-
-
Method Detail
-
isDebug
public boolean isDebug()
Method isDebug- Returns:
-
setDebug
public void setDebug(boolean debug)
Method setDebug- Parameters:
debug-
-
isQuiet
public boolean isQuiet()
Method isQuiet- Returns:
-
setQuiet
public void setQuiet(boolean quiet)
Method setQuiet- Parameters:
quiet-
-
isImports
public boolean isImports()
Method isImports- Returns:
-
setImports
public void setImports(boolean imports)
Method setImports- Parameters:
imports-
-
isVerbose
public boolean isVerbose()
Method isVerbose- Returns:
-
setVerbose
public void setVerbose(boolean verbose)
Method setVerbose- Parameters:
verbose-
-
isNowrap
public boolean isNowrap()
Method isNowrap- Returns:
-
setNowrap
public void setNowrap(boolean nowrap)
Method setNowrap- Parameters:
nowrap-
-
getTimeout
public long getTimeout()
Return the current timeout setting- Returns:
-
setTimeout
public void setTimeout(long timeout)
Set the timeout, in milliseconds- Parameters:
timeout-
-
getUsername
public java.lang.String getUsername()
Method getUsername- Returns:
-
setUsername
public void setUsername(java.lang.String username)
Method setUsername- Parameters:
username-
-
getPassword
public java.lang.String getPassword()
Method getPassword- Returns:
-
setPassword
public void setPassword(java.lang.String password)
Method setPassword- Parameters:
password-
-
getFactory
public GeneratorFactory getFactory()
Method getFactory- Returns:
-
setFactory
public void setFactory(GeneratorFactory factory)
Method setFactory- Parameters:
factory-
-
getSymbolTable
public SymbolTable getSymbolTable()
Get the symbol table. The symbol table is null until run is called.- Returns:
-
getCurrentDefinition
public javax.wsdl.Definition getCurrentDefinition()
Return the current definition. The current definition is null until run is called.- Returns:
-
getWSDLURI
public java.lang.String getWSDLURI()
Get the current WSDL URI. The WSDL URI is null until run is called.- Returns:
-
run
public void run(java.lang.String wsdlURI) throws java.lang.ExceptionParse a WSDL at a given URL. This method will time out after the number of milliseconds specified by our timeoutms member.- Parameters:
wsdlURI-- Throws:
java.lang.Exception
-
run
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.ParserConfigurationExceptionCall 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:
java.io.IOExceptionorg.xml.sax.SAXExceptionjavax.wsdl.WSDLExceptionjavax.xml.parsers.ParserConfigurationException
-
sanityCheck
protected void sanityCheck(SymbolTable symbolTable)
Method sanityCheck- Parameters:
symbolTable-
-
-