org.apache.axis.wsdl.toJava
public class Utils extends Utils
Version: %I%, %G%
Field Summary | |
---|---|
protected static Log | log Field log |
Method Summary | |
---|---|
static String | addPackageName(String className, String newPkg)
Add package to name
|
static String | addUnderscore(String name)
Prepend an underscore to the name
|
static String | capitalizeFirstChar(String name)
Capitalize the first character of the name.
|
static boolean | fileExists(String name, String namespace, Namespaces namespaces)
Does the given file already exist in the given namespace?
|
static String | getConstructorForParam(Parameter param, SymbolTable symbolTable, BooleanHolder bThrow)
Return a constructor for the provided Parameter
This string will be suitable for assignment:
Foo var = string returned
Handles basic java types (int, float, etc), wrapper types (Integer, etc)
and certain java.math (BigDecimal, BigInteger) types.
|
static Vector | getEnumerationBaseAndValues(Node node, SymbolTable symbolTable)
If the specified node represents a supported JAX-RPC enumeration,
a Vector is returned which contains the base type and the enumeration values.
|
static QName | getFaultDataType(Message faultMessage, SymbolTable symbolTable)
Given a fault message, return the XML type of the exception data.
|
static String | getFullExceptionName(Message faultMessage, SymbolTable symbolTable)
Given a fault message, return the fully qualified Java class name
of the exception to be generated from this fault
|
static QName | getItemQName(TypeEntry te) |
static QName | getItemType(TypeEntry te) |
static String | getJavaLocalName(String fullName)
Query Java Local Name
|
static String | getJavaPackageName(String fullName)
Query Java Package Name
|
static QName | getMIMETypeQName(String mimeName)
Given a MIME type, return the AXIS-specific type QName.
|
static String | getNewQName(QName qname)
Common code for generating a QName in emitted code. |
static String | getNewQNameWithLastLocalPart(QName qname) |
static QName | getOperationQName(BindingOperation bindingOper, BindingEntry bEntry, SymbolTable symbolTable)
Return the operation QName. |
static String | getOperationSOAPAction(BindingOperation bindingOper)
Return the SOAPAction (if any) of this binding operation
|
static String | getParameterTypeName(Parameter parm)
Get the parameter type name. |
static String | getResponseString(Parameter param, String var)
Return the Object variable 'var' cast to the appropriate type
doing the right thing for the primitive types.
|
static String | getWrapperType(String type)
Return a "wrapper" type for the given type name. |
static String | getWrapperType(TypeEntry type)
Returns a "wrapper" type for the given TypeEntry.
|
static QName | getXSIType(Parameter param)
Get the QName that could be used in the xsi:type
when serializing an object for this parameter/return
|
static QName | getXSIType(TypeEntry te)
Get the QName that could be used in the xsi:type
when serializing an object of the given type.
|
static boolean | hasMIME(BindingEntry bEntry)
Are there any MIME parameters in the given binding?
|
static boolean | hasMIME(BindingEntry bEntry, BindingOperation operation)
Are there any MIME parameters in the given binding's operation?
|
static String | holder(TypeEntry type, Emitter emitter) |
static String | holder(Parameter p, Emitter emitter)
Given a type, return the Java mapping of that type's holder.
|
static boolean | isFaultComplex(Message faultMessage, SymbolTable symbolTable)
Given a fault message, return TRUE if the fault is a complex type fault
|
static boolean | isPrimitiveType(TypeEntry type)
Method isPrimitiveType
|
static boolean | isXsNode(Node node, String nameName)
Determines if the DOM Node represents an xs: |
static String | makePackageName(String namespace)
Method makePackageName
|
static boolean | shouldEmit(TypeEntry type) * We have some constructed type. |
static String | wrapPrimitiveType(TypeEntry type, String var)
Return a string with "var" wrapped as an Object type if needed
|
static String | xmlNameToJava(String name)
Map an XML name to a valid Java identifier
|
static String | xmlNameToJavaClass(String name)
Map an XML name to a valid Java identifier w/ capitolized first letter
|
Parameters: className full name of the class. newPkg name of the package to append
Returns: String name with package name added
Parameters: name
Returns:
Parameters: name
Returns:
Parameters: name namespace namespaces
Returns:
Throws: IOException
Parameters: param info about the parameter we need a constructor for symbolTable used to lookup enumerations bThrow set to true if contructor needs try/catch block
Returns:
Parameters: node symbolTable
Returns:
Parameters: faultMessage The WSDL fault message object symbolTable the current symbol table
Returns: A QName for the XML type of the data
Parameters: faultMessage The WSDL fault message symbolTable the current symbol table
Returns: A Java class name for the fault
Parameters: fullName
Returns:
Parameters: fullName
Returns:
Parameters: mimeName the MIME type name
Returns: the AXIS-specific QName for the MIME type
Parameters: qname
Returns:
Parameters: bindingOper the operation bEntry the symbol table binding entry symbolTable SymbolTable
Returns: the operation QName
Parameters: bindingOper the operation to look at
Returns: the SOAPAction or null if not found
Parameters: parm
Returns:
Parameters: var
Returns:
Parameters: type
Returns: the name of a java wrapper class for the type, or the type's name if it's not primitive.
Parameters: type
Returns: the name of a java wrapper class for the type, or the type's name if it's not a primitive.
Parameters: param is a parameter
Returns: the QName of the parameter's xsi type
Parameters: te is the type entry
Returns: the QName of the type's xsi type
Parameters: bEntry
Returns:
Parameters: bEntry operation
Returns:
See Also: Utils
Parameters: p parameter whose holder class name we want to obtain. emitter the only Emitter object embodying the running instance of WSDL2Java.
Returns: the name of the holder class for p.
Parameters: faultMessage The WSDL fault message object symbolTable the current symbol table
Returns: A Java class name for the fault
Parameters: type
Returns:
Parameters: namespace
Returns:
Parameters: type var
Returns:
Parameters: name
Returns:
Parameters: name
Returns: