xsul.type_handler
Class TypeHandlerRegistry

java.lang.Object
  extended byxsul.type_handler.TypeHandlerRegistry
Direct Known Subclasses:
CommonTypeHandlerRegistry, Soap11TypeHandlerRegistry, XBeansTypeHandlerRegistry, XsdTypeHandlerRegistry

public class TypeHandlerRegistry
extends java.lang.Object

This is abstract class that is basse to implement registry of type handlers. Type handler registries can be chained.

Version:
$Revision: 1.13 $
Author:
Aleksander Slominski

Constructor Summary
TypeHandlerRegistry(TypeHandlerRegistry chainedRegistry)
           
 
Method Summary
 TypeHandlerRegistry getTopRegistry()
           
 XmlElement javaToXmlElement(java.lang.Object javaValue, java.lang.String elNamespaceName, java.lang.String elName)
           
 void registerHandler(java.lang.String namespaceName, java.lang.String name, java.lang.Class javaType, TypeHandler th)
           
 void setTopRegistry(TypeHandlerRegistry topRegistry)
           
 java.lang.Object xmlElementToJava(XmlElement xmlElValue, java.lang.Class expectedType)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeHandlerRegistry

public TypeHandlerRegistry(TypeHandlerRegistry chainedRegistry)
Method Detail

getTopRegistry

public TypeHandlerRegistry getTopRegistry()

setTopRegistry

public void setTopRegistry(TypeHandlerRegistry topRegistry)

xmlElementToJava

public java.lang.Object xmlElementToJava(XmlElement xmlElValue,
                                         java.lang.Class expectedType)
                                  throws TypeHandlerException
Throws:
TypeHandlerException

javaToXmlElement

public XmlElement javaToXmlElement(java.lang.Object javaValue,
                                   java.lang.String elNamespaceName,
                                   java.lang.String elName)
                            throws TypeHandlerException
Throws:
TypeHandlerException

registerHandler

public void registerHandler(java.lang.String namespaceName,
                            java.lang.String name,
                            java.lang.Class javaType,
                            TypeHandler th)
                     throws TypeHandlerException
Throws:
TypeHandlerException


IU Extreme! Lab (http://www.extreme.indiana.edu)