jBrokerTM Web 2.0

com.sssw.jbroker.web.mapping
Class TypeMapper

java.lang.Object
  |
  +--com.sssw.jbroker.web.mapping.TypeMapper
All Implemented Interfaces:
Serializable

Deprecated. As of jBroker Web 2.0

public class TypeMapper
extends Object
implements Serializable

The TypeMapper class is a registry for type mappings. Applications should use the standard JAXRPC TypeMappingRegistry instead.

See Also:
TypeMappingRegistry, DefaultTypeMappingRegistry, Serialized Form

Constructor Summary
TypeMapper()
          Deprecated. Construct a TypeMapper.
TypeMapper(TypeMapper delegateMR)
          Deprecated. Construct a TypeMapper with the given parent TypeMapper.
 
Method Summary
 TypeMapping get(Class javaType)
          Deprecated. Get the Type Mapping for the given Java Type.
 TypeMapping get(Class javaType, boolean useDelegate)
          Deprecated. Get the Type Mapping for the given Java Type.
 TypeMapping get(QName qname)
          Deprecated. Get the Type Mapping for the given XML Type.
 TypeMapping get(QName qname, boolean useDelegate)
          Deprecated. Get the Type Mapping for the given XML Type.
static TypeMapper getDefault()
          Deprecated. Get the default TypeMapper.
 TypeMapper getDelegate()
          Deprecated. Get the parent TypeMapper.
 void importMappings(Properties mappings)
          Deprecated. Import the mappings from the given properties.
 void importMappings(Properties mappings, ClassLoader loader)
          Deprecated. Import the mappings from the given properties.
 void importMappings(String propResource)
          Deprecated. Import the mappings from the given resource.
 void importMappings(String propResource, ClassLoader loader)
          Deprecated. Import mappings into the TypeMapper from the given resource.
 void importMappings(String propResource, Servlet servlet)
          Deprecated. Import mappings into the TypeMapper from the given resource name.
 void importMappings(String propResource, Servlet servlet, ClassLoader loader)
          Deprecated. Import mappings into the TypeMapper from the given resource name.
 boolean isReadOnly()
          Deprecated. Determine if the Type Mapper is read only.
 Iterator iterator()
          Deprecated. Returns an iterator over the mappings in this TypeMapper.
 void put(TypeMapping mapping)
          Deprecated. Put a Type Mapping in the Type Mapper.
 void setReadOnly()
          Deprecated. Set the TypeMapper to be read only.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeMapper

public TypeMapper()
Deprecated. 
Construct a TypeMapper.

TypeMapper

public TypeMapper(TypeMapper delegateMR)
Deprecated. 
Construct a TypeMapper with the given parent TypeMapper.
Method Detail

getDelegate

public TypeMapper getDelegate()
Deprecated. 
Get the parent TypeMapper.

getDefault

public static TypeMapper getDefault()
Deprecated. 
Get the default TypeMapper.

isReadOnly

public boolean isReadOnly()
Deprecated. 
Determine if the Type Mapper is read only.

setReadOnly

public void setReadOnly()
Deprecated. 
Set the TypeMapper to be read only.

put

public void put(TypeMapping mapping)
         throws TypeMappingException
Deprecated. 
Put a Type Mapping in the Type Mapper.

importMappings

public void importMappings(String propResource,
                           ClassLoader loader)
                    throws TypeMappingException,
                           IOException
Deprecated. 
Import mappings into the TypeMapper from the given resource.

Properties props = new Properties(); props.load(loader.getResourceAsStream(propResource)); importMappings(props, loader);

importMappings

public void importMappings(String propResource,
                           Servlet servlet)
                    throws TypeMappingException,
                           ServletException,
                           IOException
Deprecated. 
Import mappings into the TypeMapper from the given resource name. The resource is loaded using the servletContext and the context class loader.

importMappings

public void importMappings(String propResource,
                           Servlet servlet,
                           ClassLoader loader)
                    throws TypeMappingException,
                           ServletException,
                           IOException
Deprecated. 
Import mappings into the TypeMapper from the given resource name. The resource is loaded using the servletContext and the given ClassLoader.

importMappings

public void importMappings(String propResource)
                    throws TypeMappingException,
                           IOException
Deprecated. 
Import the mappings from the given resource. The classes are loaded from the context Class Loader.

importMappings

public void importMappings(Properties mappings,
                           ClassLoader loader)
                    throws TypeMappingException
Deprecated. 
Import the mappings from the given properties. Each property value is a 6-tuple that represents an individual TypeMapping.

<java Type> <Serializer> <Deserializer> <URI> <LN> <location>

For example,

mapping1=Address AddressMarshaler AddressMarshaler urn:DemoApp Address http://schemas.acme.org/address
The java classes are loaded from the given class loader.

importMappings

public void importMappings(Properties mappings)
                    throws TypeMappingException
Deprecated. 
Import the mappings from the given properties. The classes are loaded from the context Class Loader.

get

public TypeMapping get(QName qname)
Deprecated. 
Get the Type Mapping for the given XML Type. The delegate (if any) is looked up first before this TypeMapper.

get

public TypeMapping get(QName qname,
                       boolean useDelegate)
Deprecated. 
Get the Type Mapping for the given XML Type. The delegate (if any) is looked up first before this TypeMapper.

get

public TypeMapping get(Class javaType)
Deprecated. 
Get the Type Mapping for the given Java Type. The delegate (if any) is looked up first before this TypeMapper.

get

public TypeMapping get(Class javaType,
                       boolean useDelegate)
Deprecated. 
Get the Type Mapping for the given Java Type. The delegate (if any) is looked up first before this TypeMapper.

iterator

public Iterator iterator()
Deprecated. 
Returns an iterator over the mappings in this TypeMapper.

jBrokerTM Web 2.0

jBroker is a registered trademark of SilverStream Software, Inc.
Copyright © 2001-2002 SilverStream Software, Inc. All Rights Reserved.