|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.axis.wsdl.symbolTable.Utils (src)
org.jboss.axis.wsdl.toJava.Utils
Constructor Summary | |
Utils()
|
Method Summary | |
static java.lang.String |
addPackageName(java.lang.String className,
java.lang.String newPkg)
Add package to name |
static java.lang.String |
addUnderscore(java.lang.String name)
Prepend an underscore to the name |
static java.lang.String |
capitalizeFirstChar(java.lang.String name)
Capitalize the first character of the name. |
static boolean |
fileExists(java.lang.String name,
java.lang.String namespace,
Namespaces (src) namespaces)
Does the given file already exist in the given namespace? |
static java.lang.String |
getConstructorForParam(Parameter (src) param,
SymbolTable (src) symbolTable,
BooleanHolder (src) 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 java.util.Vector |
getEnumerationBaseAndValues(org.w3c.dom.Node node,
SymbolTable (src) 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 (src) |
getFaultDataType(Message faultMessage,
SymbolTable (src) symbolTable)
Given a fault message, return the XML type of the exception data. |
static java.lang.String |
getFullExceptionName(Message faultMessage,
SymbolTable (src) symbolTable)
Given a fault message, return the fully qualified Java class name of the exception to be generated from this fault |
static java.lang.String |
getJavaLocalName(java.lang.String fullName)
Query Java Local Name |
static java.lang.String |
getJavaPackageName(java.lang.String fullName)
Query Java Package Name |
static QName (src) |
getMIMETypeQName(java.lang.String mimeName)
Given a MIME type, return the AXIS-specific type QName. |
static java.lang.String |
getNewQName(QName (src) qname)
Common code for generating a QName in emitted code. |
static QName (src) |
getOperationQName(BindingOperation bindingOper,
BindingEntry (src) bEntry,
SymbolTable (src) symbolTable)
Return the operation QName. |
static java.lang.String |
getParameterTypeName(Parameter (src) parm)
Get the parameter type name. |
static java.lang.String |
getResponseString(TypeEntry (src) type,
MimeInfo (src) mimeInfo,
java.lang.String var)
Return the Object variable 'var' cast to the appropriate type doing the right thing for the primitive types. |
static QName (src) |
getXSIType(Parameter (src) param)
Get the QName that could be used in the xsi:type when serializing an object for this parameter/return |
static QName (src) |
getXSIType(TypeEntry (src) te)
Get the QName that could be used in the xsi:type when serializing an object of the given type. |
static boolean |
hasMIME(BindingEntry (src) bEntry)
Are there any MIME parameters in the given binding? |
static boolean |
hasMIME(BindingEntry (src) bEntry,
BindingOperation operation)
Are there any MIME parameters in the given binding's operation? |
static java.lang.String |
holder(MimeInfo (src) mimeInfo,
TypeEntry (src) type,
Emitter (src) emitter)
Given a type, return the Java mapping of that type's holder. |
static boolean |
isFaultComplex(Message faultMessage,
SymbolTable (src) symbolTable)
Given a fault message, return TRUE if the fault is a complex type fault |
static boolean |
isPrimitiveType(TypeEntry (src) type)
|
static java.lang.String |
makePackageName(java.lang.String namespace)
|
static java.lang.String |
wrapPrimitiveType(TypeEntry (src) type,
java.lang.String var)
Return a string with "var" wrapped as an Object type if needed |
static java.lang.String |
xmlNameToJava(java.lang.String name)
Map an XML name to a valid Java identifier |
static java.lang.String |
xmlNameToJavaClass(java.lang.String name)
Map an XML name to a valid Java identifier w/ capitolized first letter |
Methods inherited from class org.jboss.axis.wsdl.symbolTable.Utils (src) |
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 java.lang.String holder(MimeInfo (src) mimeInfo, TypeEntry (src) type, Emitter (src) emitter)
public static java.lang.String addPackageName(java.lang.String className, java.lang.String newPkg)
className
- full name of the class.newPkg
- name of the package to append
public static java.lang.String getFullExceptionName(Message faultMessage, SymbolTable (src) symbolTable)
faultMessage
- The WSDL fault messagesymbolTable
- the current symbol table
public static QName (src) getFaultDataType(Message faultMessage, SymbolTable (src) symbolTable)
faultMessage
- The WSDL fault message objectsymbolTable
- the current symbol table
public static boolean isFaultComplex(Message faultMessage, SymbolTable (src) symbolTable)
faultMessage
- The WSDL fault message objectsymbolTable
- the current symbol table
public static java.util.Vector getEnumerationBaseAndValues(org.w3c.dom.Node node, SymbolTable (src) symbolTable)
public static java.lang.String capitalizeFirstChar(java.lang.String name)
public static java.lang.String addUnderscore(java.lang.String name)
public static java.lang.String xmlNameToJava(java.lang.String name)
public static java.lang.String xmlNameToJavaClass(java.lang.String name)
public static java.lang.String makePackageName(java.lang.String namespace)
public static java.lang.String getJavaLocalName(java.lang.String fullName)
public static java.lang.String getJavaPackageName(java.lang.String fullName)
public static boolean fileExists(java.lang.String name, java.lang.String namespace, Namespaces (src) namespaces) throws java.io.IOException
java.io.IOException
public static java.lang.String wrapPrimitiveType(TypeEntry (src) type, java.lang.String var)
public static java.lang.String getResponseString(TypeEntry (src) type, MimeInfo (src) mimeInfo, java.lang.String var)
public static boolean isPrimitiveType(TypeEntry (src) type)
public static QName (src) getOperationQName(BindingOperation bindingOper, BindingEntry (src) bEntry, SymbolTable (src) symbolTable)
bindingOper
- the operationbEntry
- the symbol table binding entrysymbolTable
- SymbolTable
public static java.lang.String getNewQName(QName (src) qname)
public static java.lang.String getParameterTypeName(Parameter (src) parm)
public static QName (src) getXSIType(Parameter (src) param)
param
- is a parameter
public static QName (src) getXSIType(TypeEntry (src) te)
te
- is the type entry
public static QName (src) getMIMETypeQName(java.lang.String mimeName)
mimeName
- the MIME type name
public static boolean hasMIME(BindingEntry (src) bEntry)
public static boolean hasMIME(BindingEntry (src) bEntry, BindingOperation operation)
public static java.lang.String getConstructorForParam(Parameter (src) param, SymbolTable (src) symbolTable, BooleanHolder (src) 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 (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |