Package org.apache.axis.wsdl.gen
Class Parser
java.lang.Object
org.apache.axis.wsdl.gen.Parser
- Direct Known Subclasses:
Emitter
This is a class with no documentation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanField debugprotected booleanField importsprotected booleanField nowrapprotected StringField passwordprotected booleanField quietprotected StringField usernameprotected booleanField verboseprotected booleanIf this is false, we'll prefer "String[]" to "ArrayOfString" for literal wrapped arrays -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.wsdl.DefinitionReturn the current definition.Method getFactoryMethod getPasswordGet the symbol table.longReturn the current timeout settingMethod getUsernameGet the current WSDL URI.booleanisDebug()Method isDebugbooleanMethod isImportsbooleanisNowrap()Method isNowrapbooleanisQuiet()Method isQuietbooleanMethod isVerbosevoidParse a WSDL at a given URL.voidCall 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(String password) Method setPasswordvoidsetQuiet(boolean quiet) Method setQuietvoidsetTimeout(long timeout) Set the timeout, in millisecondsvoidsetUsername(String username) Method setUsernamevoidsetVerbose(boolean verbose) Method setVerbose
-
Field Details
-
debug
protected boolean debugField debug -
quiet
protected boolean quietField quiet -
imports
protected boolean importsField imports -
verbose
protected boolean verboseField verbose -
nowrap
protected boolean nowrapField nowrap -
username
Field username -
password
Field password -
wrapArrays
protected boolean wrapArraysIf this is false, we'll prefer "String[]" to "ArrayOfString" for literal wrapped arrays
-
-
Constructor Details
-
Parser
public Parser()
-
-
Method Details
-
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
Method getUsername- Returns:
-
setUsername
Method setUsername- Parameters:
username-
-
getPassword
Method getPassword- Returns:
-
setPassword
Method setPassword- Parameters:
password-
-
getFactory
Method getFactory- Returns:
-
setFactory
Method setFactory- Parameters:
factory-
-
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
Get the current WSDL URI. The WSDL URI is null until run is called.- Returns:
-
run
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) throws IOException, SAXException, javax.wsdl.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.- Throws:
IOExceptionSAXExceptionjavax.wsdl.WSDLExceptionParserConfigurationException
-
sanityCheck
Method sanityCheck- Parameters:
symbolTable-
-