Search in sources :

Example 1 with JDOMElementType

use of org.apache.cxf.aegis.type.xml.JDOMElementType 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.
    }
}
Also used : JDOMDocumentType(org.apache.cxf.aegis.type.xml.JDOMDocumentType) JDOMElementType(org.apache.cxf.aegis.type.xml.JDOMElementType)

Aggregations

JDOMDocumentType (org.apache.cxf.aegis.type.xml.JDOMDocumentType)1 JDOMElementType (org.apache.cxf.aegis.type.xml.JDOMElementType)1