use of org.apache.cxf.aegis.type.xml.JDOMDocumentType in project cxf by apache.
the class DefaultTypeMapping method registerJDOMTypes.
private static void registerJDOMTypes(TypeMapping tm, boolean defaultNillable) {
try {
Class<?> jdomDocClass = ClassLoaderUtils.loadClass("org.jdom.Document", DefaultTypeMapping.class);
defaultRegister(tm, defaultNillable, jdomDocClass, Constants.XSD_ANYTYPE, new JDOMDocumentType());
} catch (ClassNotFoundException e) {
// not available.
}
try {
Class<?> jdomElementClass = ClassLoaderUtils.loadClass("org.jdom.Element", DefaultTypeMapping.class);
defaultRegister(tm, defaultNillable, jdomElementClass, Constants.XSD_ANYTYPE, new JDOMElementType());
} catch (ClassNotFoundException e) {
// not available.
}
}
Aggregations