|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis.wsdl.symbolTable.Utils org.apache.axis.wsdl.toJava.Utils
Constructor Summary | |
Utils()
|
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,
javax.xml.rpc.holders.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 javax.xml.namespace.QName |
getFaultDataType(javax.wsdl.Message faultMessage,
SymbolTable symbolTable)
Given a fault message, return the XML type of the exception data. |
static String |
getFullExceptionName(javax.wsdl.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 String |
getJavaLocalName(String fullName)
Query Java Local Name |
static String |
getJavaPackageName(String fullName)
Query Java Package Name |
static javax.xml.namespace.QName |
getMIMETypeQName(String mimeName)
Given a MIME type, return the AXIS-specific type QName. |
static String |
getNewQName(javax.xml.namespace.QName qname)
Common code for generating a QName in emitted code. |
static javax.xml.namespace.QName |
getOperationQName(javax.wsdl.BindingOperation bindingOper,
BindingEntry bEntry,
SymbolTable symbolTable)
Return the operation QName. |
static String |
getParameterTypeName(Parameter parm)
Get the parameter type name. |
static String |
getResponseString(TypeEntry type,
MimeInfo mimeInfo,
String var)
Return the Object variable 'var' cast to the appropriate type doing the right thing for the primitive types. |
static javax.xml.namespace.QName |
getXSIType(Parameter param)
Get the QName that could be used in the xsi:type when serializing an object for this parameter/return |
static javax.xml.namespace.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,
javax.wsdl.BindingOperation operation)
Are there any MIME parameters in the given binding's operation? |
static String |
holder(MimeInfo mimeInfo,
TypeEntry type,
Emitter emitter)
Given a type, return the Java mapping of that type's holder. |
static boolean |
isFaultComplex(javax.wsdl.Message faultMessage,
SymbolTable symbolTable)
Given a fault message, return TRUE if the fault is a complex type fault |
static boolean |
isPrimitiveType(TypeEntry type)
|
static String |
makePackageName(String namespace)
|
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 |
Methods inherited from class org.apache.axis.wsdl.symbolTable.Utils |
genQNameAttributeString, getAttribute, getAttributesWithLocalName, getDerivedTypes, getNestedTypes, getNillableQName, getNodeNameQName, getNodeQName, getQNameFromPrefixedName, getScopedAttribute, getTypeQName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Utils()
Method Detail |
public static String holder(MimeInfo mimeInfo, TypeEntry type, Emitter emitter)
public static String addPackageName(String className, String newPkg)
className
- full name of the class.newPkg
- name of the package to append
public static String getFullExceptionName(javax.wsdl.Message faultMessage, SymbolTable symbolTable)
faultMessage
- The WSDL fault messagesymbolTable
- the current symbol table
public static javax.xml.namespace.QName getFaultDataType(javax.wsdl.Message faultMessage, SymbolTable symbolTable)
faultMessage
- The WSDL fault message objectsymbolTable
- the current symbol table
public static boolean isFaultComplex(javax.wsdl.Message faultMessage, SymbolTable symbolTable)
faultMessage
- The WSDL fault message objectsymbolTable
- the current symbol table
public static Vector getEnumerationBaseAndValues(Node node, SymbolTable symbolTable)
public static String capitalizeFirstChar(String name)
public static String addUnderscore(String name)
public static String xmlNameToJava(String name)
public static String xmlNameToJavaClass(String name)
public static String makePackageName(String namespace)
public static String getJavaLocalName(String fullName)
public static String getJavaPackageName(String fullName)
public static boolean fileExists(String name, String namespace, Namespaces namespaces) throws IOException
IOException
public static String wrapPrimitiveType(TypeEntry type, String var)
public static String getResponseString(TypeEntry type, MimeInfo mimeInfo, String var)
public static boolean isPrimitiveType(TypeEntry type)
public static javax.xml.namespace.QName getOperationQName(javax.wsdl.BindingOperation bindingOper, BindingEntry bEntry, SymbolTable symbolTable)
bindingOper
- the operationbEntry
- the symbol table binding entrysymbolTable
- SymbolTable
public static String getNewQName(javax.xml.namespace.QName qname)
public static String getParameterTypeName(Parameter parm)
public static javax.xml.namespace.QName getXSIType(Parameter param)
param
- is a parameter
public static javax.xml.namespace.QName getXSIType(TypeEntry te)
te
- is the type entry
public static javax.xml.namespace.QName getMIMETypeQName(String mimeName)
mimeName
- the MIME type name
public static boolean hasMIME(BindingEntry bEntry)
public static boolean hasMIME(BindingEntry bEntry, javax.wsdl.BindingOperation operation)
public static String getConstructorForParam(Parameter param, SymbolTable symbolTable, javax.xml.rpc.holders.BooleanHolder bThrow)
param
- info about the parameter we need a constructor forsymbolTable
- used to lookup enumerationsbThrow
- set to true if contructor needs try/catch block
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |