org.apache.wsif.mapping
Interface WSIFMapper

All Known Implementing Classes:
WSDL2JavaMapper, WSIFDefaultMapper

public interface WSIFMapper

A WSIFMapper defines a way of producing a list of QName to Java class name mappings. It defines the logic for determining what type of mapping is required for a particular SchemaType The mapping is then produced by an associated WSIFMappingConvention

Author:
Owen Burroughs

Method Summary
 boolean getIncludeStandardMappings()
          Get the flag indicating whether or not the list of mappings returned by the getMappings method includes the standard JAX-RPC mappings for simple types.
 WSIFMappingConvention getMappingConvention()
          Get the WSIFMappingConvention used by the WSIFMapper
 java.util.Map getMappings(SchemaType[] types)
          Get a map of xml name to Java class name (QName to String) mappings from a array of SchemaType objects
 void overrideTypeMapping(javax.xml.namespace.QName xmlName, java.lang.String className)
          Override a generated mapping for a particular xml name with this information
 void setIncludeStandardMappings(boolean b)
          Set a flag to indicate whether or not the list of mappings returned by the getMappings method includes the standard JAX-RPC mappings for simple types.
 void setMappingConvention(WSIFMappingConvention con)
          Set the WSIFMappingConvention used by the WSIFMapper
 

Method Detail

setIncludeStandardMappings

void setIncludeStandardMappings(boolean b)
Set a flag to indicate whether or not the list of mappings returned by the getMappings method includes the standard JAX-RPC mappings for simple types.

Parameters:
b - The flag

getIncludeStandardMappings

boolean getIncludeStandardMappings()
Get the flag indicating whether or not the list of mappings returned by the getMappings method includes the standard JAX-RPC mappings for simple types.

Returns:
The flag

setMappingConvention

void setMappingConvention(WSIFMappingConvention con)
Set the WSIFMappingConvention used by the WSIFMapper

Parameters:
con - The WSIFMappingConvention to use

getMappingConvention

WSIFMappingConvention getMappingConvention()
Get the WSIFMappingConvention used by the WSIFMapper

Returns:
The WSIFMappingConvention

getMappings

java.util.Map getMappings(SchemaType[] types)
Get a map of xml name to Java class name (QName to String) mappings from a array of SchemaType objects

Parameters:
types - An array of SchemaType objects to create the mappings for
Returns:
A map of xml name to Java class name mappings

overrideTypeMapping

void overrideTypeMapping(javax.xml.namespace.QName xmlName,
                         java.lang.String className)
Override a generated mapping for a particular xml name with this information

Parameters:
xmlName - The xml name of the mapping
className - The class name for the mapping


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