Tabnine Logo
ClassMappings.isAbstract
Code IndexAdd Tabnine to your IDE (free)

How to use
isAbstract
method
in
org.dozer.classmap.ClassMappings

Best Java code snippets using org.dozer.classmap.ClassMappings.isAbstract (Showing top 2 results out of 315)

origin: net.sf.dozer/dozer

private ClassMap findInterfaceMapping(Class<?> destClass, Class<?> srcClass, String mapId) {
 // Use object array for keys to avoid any rare thread synchronization issues
 // while iterating over the custom mappings.
 // See bug #1550275.
 Object[] keys = classMappings.keySet().toArray();
 for (Object key : keys) {
  ClassMap map = classMappings.get(key);
  Class<?> mappingDestClass = map.getDestClassToMap();
  Class<?> mappingSrcClass = map.getSrcClassToMap();
  if ((mapId == null && map.getMapId() != null) || (mapId != null && !mapId.equals(map.getMapId()))) {
   continue;
  }
  if (isInterfaceImplementation(srcClass, mappingSrcClass)) {
   if (isInterfaceImplementation(destClass, mappingDestClass)) {
    return map;
   } else if (destClass.equals(mappingDestClass)) {
    return map;
   }
  }
  // Destination could be an abstract type. Picking up the best concrete type to use.
  if ((destClass.isAssignableFrom(mappingDestClass) && isAbstract(destClass)) ||
      (isInterfaceImplementation(destClass, mappingDestClass))) {
   if (MappingUtils.getRealClass(srcClass).equals(mappingSrcClass)) {
    return map;
   }
  }
 }
 return null;
}
origin: org.openl.rules/org.openl.rules.mapping.dev.dozer

if ((destClass.isAssignableFrom(mappingDestClass) && isAbstract(destClass)) || (isInterfaceImplementation(
  destClass, mappingDestClass))) {
  if (MappingUtils.getRealClass(srcClass).equals(mappingSrcClass)) {
org.dozer.classmapClassMappingsisAbstract

Popular methods of ClassMappings

  • find
  • <init>
  • add
  • addDefault
  • addAll
  • failOnDuplicate
  • findInterfaceMapping
  • getAll
  • isInterfaceImplementation

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now