Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.databinding
Interface SimpleTypeMapper

All Known Implementing Classes:
SimpleTypeMapperExtension

public interface SimpleTypeMapper

Type Mapper between XML schema simple data types and java objects


Method Summary
 Object toJavaObject(TypeInfo simpleType, String value, TransformationContext context)
          Parse the XML lexical representation into a java object
 String toXMLLiteral(TypeInfo simpleType, Object obj, TransformationContext context)
          Create the XML lexical representation for a java object
 

Method Detail

toJavaObject

Object toJavaObject(TypeInfo simpleType,
                    String value,
                    TransformationContext context)
Parse the XML lexical representation into a java object

Parameters:
simpleType - The XSD simple type
value - the XML lexical representation
context - The context of the transformation
Returns:
A java object for the XML value

toXMLLiteral

String toXMLLiteral(TypeInfo simpleType,
                    Object obj,
                    TransformationContext context)
Create the XML lexical representation for a java object

Parameters:
simpleType - The XSD simple type
obj - The java object
context - The context of the transformation
Returns:
The XML lexical representation

Apache Tuscany SCA Kernel Sub-Project

-