org.apache.wsif.providers
Class WSIFDynamicTypeMap

java.lang.Object
  |
  +--org.apache.wsif.providers.WSIFDynamicTypeMap
All Implemented Interfaces:
java.io.Serializable

public class WSIFDynamicTypeMap
extends java.lang.Object
implements java.io.Serializable

Container for type mappings that can be used by dynamic providers.

Author:
Alekander Slominski, Owen Burroughs
See Also:
Serialized Form

Constructor Summary
WSIFDynamicTypeMap()
          Default constructor
WSIFDynamicTypeMap(java.util.ArrayList aList)
          Constructor
 
Method Summary
 WSIFDynamicTypeMap copy()
          Produce a copy of the WSIFDynamicTypeMap.
 java.util.Iterator iterator()
          Return iterator with all mappings.
 void mapPackage(java.lang.String namespace, java.lang.String packageName)
          Map a package name to a namespace URI
 void mapType(javax.xml.namespace.QName xmlType, java.lang.Class javaType)
          Add new mapping between XML and Java type.
 void mapType(javax.xml.namespace.QName xmlType, java.lang.Class javaType, boolean force)
          Add new mapping between XML and Java type.
 void setAllTypes(java.util.ArrayList aList)
          Set the list of all custom types from the wsdl
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSIFDynamicTypeMap

public WSIFDynamicTypeMap()
Default constructor

WSIFDynamicTypeMap

public WSIFDynamicTypeMap(java.util.ArrayList aList)
Constructor
Parameters:
alist - An ArrayList of all custom types from the wsdl
Method Detail

mapType

public void mapType(javax.xml.namespace.QName xmlType,
                    java.lang.Class javaType)
Add new mapping between XML and Java type. This method is equivalent to calling mapType(xmlType, javaType, true)
Parameters:
xmlType - The qualified xml name
javaType - The Java class
See Also:
mapType(QName, Class, boolean)

mapType

public void mapType(javax.xml.namespace.QName xmlType,
                    java.lang.Class javaType,
                    boolean force)
Add new mapping between XML and Java type.
Parameters:
xmlType - The qualified xml name
javaType - The Java class
force - flag to indicate if mapping should override an existing one for the same xmlType

mapPackage

public void mapPackage(java.lang.String namespace,
                       java.lang.String packageName)
Map a package name to a namespace URI
Parameters:
namespace - The wsdl namespace
packageName - The name of the Java package

setAllTypes

public void setAllTypes(java.util.ArrayList aList)
Set the list of all custom types from the wsdl
Parameters:
aList - The list

iterator

public java.util.Iterator iterator()
Return iterator with all mappings.
Returns:
The iterator

copy

public WSIFDynamicTypeMap copy()
Produce a copy of the WSIFDynamicTypeMap. This is not a clone; the copy will contain references to the same WSIFDynamicTypeMappings. This method contains synchronized code so that the type map cannot be altered whilst the copy takes place.
Returns:
The copy of the WSIFDynamicTypeMap


Copyright © 2002, 2002 Apache XML Project. All Rights Reserved.