org.apache.wsif.mapping
Class WSIFDefaultMappingConvention

java.lang.Object
  extended by org.apache.wsif.mapping.WSIFDefaultMappingConvention
All Implemented Interfaces:
WSIFMappingConvention

public class WSIFDefaultMappingConvention
extends java.lang.Object
implements WSIFMappingConvention

Default implementation of WSIFMappingConvention This convention works as follows:

So for example, the xml name
   http://www.wsif.com/test/types:address
would map to
  com.wsif.www.test.types.Address

Author:
Owen Burroughs

Constructor Summary
WSIFDefaultMappingConvention()
           
 
Method Summary
 java.lang.String getClassNameForComplexType(javax.xml.namespace.QName qn)
          Get a class name for a complexType
 java.lang.String getClassNameForElementType(javax.xml.namespace.QName qn)
          Get a class name for a global element
 java.lang.String getClassNameForSimpleType(javax.xml.namespace.QName qn)
          Get a class name for a simpleType
 void overridePackageMapping(java.lang.String namespace, java.lang.String packageName)
          Override the mapping from a namespace to a package name for a specific namespace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSIFDefaultMappingConvention

public WSIFDefaultMappingConvention()
Method Detail

getClassNameForComplexType

public java.lang.String getClassNameForComplexType(javax.xml.namespace.QName qn)
Description copied from interface: WSIFMappingConvention
Get a class name for a complexType

Specified by:
getClassNameForComplexType in interface WSIFMappingConvention
Parameters:
qn - The name of the complexType
Returns:
The Java class name
See Also:
WSIFMappingConvention.getClassNameForComplexType(QName)

getClassNameForSimpleType

public java.lang.String getClassNameForSimpleType(javax.xml.namespace.QName qn)
Description copied from interface: WSIFMappingConvention
Get a class name for a simpleType

Specified by:
getClassNameForSimpleType in interface WSIFMappingConvention
Parameters:
qn - The name of the simpleType
Returns:
The Java class name
See Also:
WSIFMappingConvention.getClassNameForSimpleType(QName)

getClassNameForElementType

public java.lang.String getClassNameForElementType(javax.xml.namespace.QName qn)
Description copied from interface: WSIFMappingConvention
Get a class name for a global element

Specified by:
getClassNameForElementType in interface WSIFMappingConvention
Parameters:
qn - The name of the element
Returns:
The Java class name
See Also:
WSIFMappingConvention.getClassNameForElementType(QName)

overridePackageMapping

public void overridePackageMapping(java.lang.String namespace,
                                   java.lang.String packageName)
Description copied from interface: WSIFMappingConvention
Override the mapping from a namespace to a package name for a specific namespace

Specified by:
overridePackageMapping in interface WSIFMappingConvention
Parameters:
namespace - The namespace to map
packageName - The package name to map the namespace to
See Also:
WSIFMappingConvention.overridePackageMapping(String, String)


Copyright ? 2002, 2006 Apache XML Project. All Rights Reserved.