Package com.evolveum.midpoint.prism.xml
Class XsdTypeMapper
java.lang.Object
com.evolveum.midpoint.prism.xml.XsdTypeMapper
Maintains mapping of XSD types (qnames) and Java types (classes)
- Author:
- Radovan Semancik
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic QName
determineQNameWithNs
(QName xsdType) static QName
getJavaToXsdMapping
(Class<?> type) static Class<?>
getTypeFromClass
(Class<?> clazz) Returns the class in the type mapping.static <T> Class<T>
getXsdToJavaMapping
(QName xsdType) static boolean
isMatchingMultiplicity
(int number, int min, int max) static Integer
multiplicityToInteger
(String string) static String
multiplicityToString
(Integer integer) static <T> @Nullable Class<T>
toJavaType
(@NotNull QName xsdType) static <T> @Nullable Class<T>
toJavaTypeIfKnown
(@NotNull QName xsdType) static @NotNull QName
-
Field Details
-
BOOLEAN_XML_VALUE_TRUE
- See Also:
-
BOOLEAN_XML_VALUE_FALSE
- See Also:
-
-
Constructor Details
-
XsdTypeMapper
public XsdTypeMapper()
-
-
Method Details
-
toXsdType
-
getJavaToXsdMapping
-
determineQNameWithNs
-
getXsdToJavaMapping
-
getTypeFromClass
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
-
toJavaTypeIfKnown
-
multiplicityToString
-
multiplicityToInteger
-
isMatchingMultiplicity
public static boolean isMatchingMultiplicity(int number, int min, int max)
-