/** * Converts the target abstract type to be compatible with the given source node class * * @param targetAbstractType * @param sourceClass the class to which to convert the node. * @return <code>null</code> when conversion not possible, converted node otherwise */ protected JNode convertTarget(JAbstractType targetAbstractType, Class<? extends JAbstractType> sourceClass) { NodeConverter converter = getControlModel().getFacadeHelper().getNodeConverter(); if (converter != null) { noAbstractTypeConversion = false; return converter.convert(targetAbstractType, sourceClass); } else { return null; } }
/** * Converts the target abstract type to be compatible with the given source node class * * @param targetAbstractType * @param sourceClass the class to which to convert the node. * @return <code>null</code> when conversion not possible, converted node otherwise */ protected JNode convertTarget(JAbstractType targetAbstractType, Class<? extends JAbstractType> sourceClass) { NodeConverter converter = getControlModel().getFacadeHelper().getNodeConverter(); if (converter != null) { noAbstractTypeConversion = false; return converter.convert(targetAbstractType, sourceClass); } else { return null; } }