org.apache.tuscany.sca.databinding.sdo
Class SDOSimpleTypeMapper
java.lang.Object
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
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 |
URI_2001_SCHEMA_XSD
public static final java.lang.String URI_2001_SCHEMA_XSD
- See Also:
- Constant Field Values
SDOSimpleTypeMapper
public SDOSimpleTypeMapper()
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 typevalue
- the XML lexical representationcontext
- 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 typeobj
- The java objectcontext
- The context of the transformation
- Returns:
- The XML lexical representation