Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.1.0)

E17483-02

oracle.adf.model.adapter.dataformat.xml
Class TypeMap

java.lang.Object
  extended by oracle.adf.model.adapter.dataformat.xml.TypeMap

public class TypeMap
extends java.lang.Object

This class maps XML Schema Definition types to Java types.


Constructor Summary
TypeMap()
           
 
Method Summary
static java.lang.String getJavaType(int xsdType)
          Maps an XML Schema Definition type to its corresponding Java type.
static java.lang.String getJavaType(java.lang.String xsdType)
          Maps an XML Schema Definition type to its corresponding Java type.
static java.lang.String getSchemaType(java.lang.String javaType)
          Maps a Java type to its corresponding XML Schema Definition type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeMap

public TypeMap()
Method Detail

getJavaType

public static java.lang.String getJavaType(int xsdType)
Maps an XML Schema Definition type to its corresponding Java type.

Parameters:
xsdType - Type of the <simpleType> element
Returns:
Java type for the given XSD type. If the schema type is not found or supported, "java.lang.Object" is returned.

getJavaType

public static java.lang.String getJavaType(java.lang.String xsdType)
Maps an XML Schema Definition type to its corresponding Java type.

Parameters:
xsdType - Type of the <simpleType> element
Returns:
Java type for the given XSD type. If the schema type is not found or supported, "java.lang.Object" is returned.

getSchemaType

public static java.lang.String getSchemaType(java.lang.String javaType)
Maps a Java type to its corresponding XML Schema Definition type.

Parameters:
javaType - Fully qualified name of Java type
Returns:
Equivalient schema type for the given Java type. If the type is not found or supported, "string" is returned.

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.1.0)

E17483-02

Copyright © 1997, 2011, Oracle. All rights reserved.