elk-owlapi-parent/elk-owlapi4/src/main/java/org/semanticweb/elk/owlapi/wrapper/OwlConverter.java
public static Class<? extends ElkObject> convertType(
			final Class<?> owlClass) {

		if (!OWLObject.class.isAssignableFrom(owlClass)) {
			return null;
		}

		for (final Method declaredMethod : OwlConverter.class
				.getDeclaredMethods()) {

			final int mod = declaredMethod.getModifiers();
			final Class<?>[] parameterTypes = declaredMethod
					.getParameterTypes();
			final Class<?> returnType = declaredMethod.getReturnType();
			if ("convert".equals(declaredMethod.getName())
					&& Modifier.isPublic(mod) && !Modifier.isStatic(mod)
					&& parameterTypes.length == 1
					&& parameterTypes[0].equals(owlClass)
					&& ElkObject.class.isAssignableFrom(returnType)) {
				return returnType.asSubclass(ElkObject.class);
			}

		}

		return null;
	}
public static Class<? extends ElkObject> convertType(
			final Class<?> owlClass) {

		if (!OWLObject.class.isAssignableFrom(owlClass)) {
			return null;
		}

		for (final Method declaredMethod : OwlConverter.class
				.getDeclaredMethods()) {

			final int mod = declaredMethod.getModifiers();
			final Class<?>[] parameterTypes = declaredMethod
					.getParameterTypes();
			final Class<?> returnType = declaredMethod.getReturnType();
			if ("convert".equals(declaredMethod.getName())
					&& Modifier.isPublic(mod) && !Modifier.isStatic(mod)
					&& parameterTypes.length == 1
					&& parameterTypes[0].equals(owlClass)
					&& ElkObject.class.isAssignableFrom(returnType)) {
				return returnType.asSubclass(ElkObject.class);
			}

		}

		return null;
	}
public static Class < ? extends ElkObject > convertType ( final Class < ? > owlClass ) { if ( ! OWLObject . class . isAssignableFrom ( owlClass ) ) { return null ; } for ( final Method declaredMethod : OwlConverter . class . getDeclaredMethods ( ) ) { final int mod = declaredMethod . getModifiers ( ) ; final Class < ? > [ ] parameterTypes = declaredMethod . getParameterTypes ( ) ; final Class < ? > returnType = declaredMethod . getReturnType ( ) ; if ( "convert" . equals ( declaredMethod . getName ( ) ) && Modifier . isPublic ( mod ) && ! Modifier . isStatic ( mod ) && parameterTypes . length == 1 && parameterTypes [ 0 ] . equals ( owlClass ) && ElkObject . class . isAssignableFrom ( returnType ) ) { return returnType . asSubclass ( ElkObject . class ) ; } } return null ; }
One-parameter, public, non-static methods called "convert" and declared
in this class specify mapping between {@link OWLObject} subclasses
(parameter) and {@link ElkObject} subclasses (return type). This method
returns a subclass of {@link ElkObject} to which the subclass of
{@link OWLObject} specified as the parameter is mapped, or {@code null}
if it is not mapped.

@param owlClass
@return
One - parameter public non - static methods called convert and declared in this class specify mapping between { @link OWLObject } subclasses ( parameter ) and { @link ElkObject } subclasses ( return type ) . This method returns a subclass of { @link ElkObject } to which the subclass of { @link OWLObject } specified as the parameter is mapped or { @code null } if it is not mapped .