com.evolveum.midpoint.prism.xml
Class XsdTypeMapper

java.lang.Object
  extended by com.evolveum.midpoint.prism.xml.XsdTypeMapper

public class XsdTypeMapper
extends Object

Maintains mapping of XSD types (qnames) and Java types (classes)

Author:
Radovan Semancik

Field Summary
static String BOOLEAN_XML_VALUE_FALSE
           
static String BOOLEAN_XML_VALUE_TRUE
           
 
Constructor Summary
XsdTypeMapper()
           
 
Method Summary
static QName getJavaToXsdMapping(Class<?> type)
           
static Class<?> getTypeFromClass(Class<?> clazz)
          Returns the class in the type mapping.
static Class<?> getXsdToJavaMapping(QName xsdType)
           
static Integer multiplicityToInteger(String string)
           
static String multiplicityToString(Integer integer)
           
static Class toJavaType(QName xsdType)
           
static QName toXsdType(Class javaClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOOLEAN_XML_VALUE_TRUE

public static final String BOOLEAN_XML_VALUE_TRUE
See Also:
Constant Field Values

BOOLEAN_XML_VALUE_FALSE

public static final String BOOLEAN_XML_VALUE_FALSE
See Also:
Constant Field Values
Constructor Detail

XsdTypeMapper

public XsdTypeMapper()
Method Detail

toXsdType

public static QName toXsdType(Class javaClass)

getJavaToXsdMapping

public static QName getJavaToXsdMapping(Class<?> type)

getXsdToJavaMapping

public static Class<?> getXsdToJavaMapping(QName xsdType)

getTypeFromClass

public static Class<?> getTypeFromClass(Class<?> clazz)
Returns the class in the type mapping. The class supplied by the caller may be a subclass of what we have in the map. This returns the class that in the mapping.


toJavaType

public static Class toJavaType(QName xsdType)

multiplicityToString

public static String multiplicityToString(Integer integer)

multiplicityToInteger

public static Integer multiplicityToInteger(String string)


Copyright © 2013 evolveum. All Rights Reserved.