xsul.type_handler
Interface TypeHandler

All Known Implementing Classes:
XBeansTypeHandler

public interface TypeHandler

This is interface that allows to convert between XML and Java value representations. This is very generic.

Version:
$Revision: 1.2 $
Author:
Aleksander Slominski

Method Summary
 java.lang.Object javaToXml(java.lang.Object javaValue)
          Taka java value and convert to representation suitable to put into XML Infoset.
 java.lang.Object xmlToJava(java.lang.Object xmlValue)
          Take XML value from XML infoset (XML Element or character content etc.) and convert to Java representation.
 

Method Detail

xmlToJava

public java.lang.Object xmlToJava(java.lang.Object xmlValue)
                           throws TypeHandlerException
Take XML value from XML infoset (XML Element or character content etc.) and convert to Java representation.

Throws:
TypeHandlerException

javaToXml

public java.lang.Object javaToXml(java.lang.Object javaValue)
                           throws TypeHandlerException
Taka java value and convert to representation suitable to put into XML Infoset.

Throws:
TypeHandlerException


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