org.apache.tuscany.sca.databinding.sdo
Class SDOSimpleTypeMapper

java.lang.Object
  extended by org.apache.tuscany.sca.databinding.sdo.SDOSimpleTypeMapper
All Implemented Interfaces:
SimpleTypeMapper

public class SDOSimpleTypeMapper
extends java.lang.Object
implements SimpleTypeMapper

SDO Java/XML mapping for simple XSD types


Field Summary
static java.lang.String URI_2001_SCHEMA_XSD
           
 
Constructor Summary
SDOSimpleTypeMapper()
           
 
Method Summary
 java.lang.Object toJavaObject(javax.xml.namespace.QName typeName, java.lang.String value, TransformationContext context)
          Parse the XML lexical representation into a java object
 java.lang.String toXMLLiteral(javax.xml.namespace.QName typeName, java.lang.Object obj, TransformationContext context)
          Create the XML lexical representation for a java object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URI_2001_SCHEMA_XSD

public static final java.lang.String URI_2001_SCHEMA_XSD
See Also:
Constant Field Values
Constructor Detail

SDOSimpleTypeMapper

public SDOSimpleTypeMapper()
Method Detail

toJavaObject

public java.lang.Object toJavaObject(javax.xml.namespace.QName typeName,
                                     java.lang.String value,
                                     TransformationContext context)
Description copied from interface: SimpleTypeMapper
Parse the XML lexical representation into a java object

Specified by:
toJavaObject in interface SimpleTypeMapper
Parameters:
typeName - The XSD simple type
value - the XML lexical representation
context - The context of the transformation
Returns:
A java object for the XML value

toXMLLiteral

public java.lang.String toXMLLiteral(javax.xml.namespace.QName typeName,
                                     java.lang.Object obj,
                                     TransformationContext context)
Description copied from interface: SimpleTypeMapper
Create the XML lexical representation for a java object

Specified by:
toXMLLiteral in interface SimpleTypeMapper
Parameters:
typeName - The XSD simple type
obj - The java object
context - The context of the transformation
Returns:
The XML lexical representation