org.apache.tuscany.sca.databinding
Interface SimpleTypeMapper

All Known Implementing Classes:
SDOSimpleTypeMapper, SimpleTypeMapperImpl

public interface SimpleTypeMapper

Type Mapper between XML schema simple data types and java objects


Method Summary
 java.lang.Object toJavaObject(javax.xml.namespace.QName simpleType, java.lang.String value, TransformationContext context)
          Parse the XML lexical representation into a java object
 java.lang.String toXMLLiteral(javax.xml.namespace.QName simpleType, java.lang.Object obj, TransformationContext context)
          Create the XML lexical representation for a java object
 

Method Detail

toJavaObject

java.lang.Object toJavaObject(javax.xml.namespace.QName simpleType,
                              java.lang.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

java.lang.String toXMLLiteral(javax.xml.namespace.QName simpleType,
                              java.lang.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