Codota Logo
ClassMappings.isInterfaceImplementation
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain ClassMappings
private void myMethod () {
ClassMappings c =
  • Codota Iconnew ClassMappings()
  • Codota IconLoadMappingsResult loadMappingsResult;loadMappingsResult.getCustomMappings()
  • Smart code suggestions by Codota
}
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 (isInterfaceImplementation(srcClass, mappingSrcClass)) {
  if (isInterfaceImplementation(destClass, mappingDestClass)) {
    return map;
  } else if (destClass.equals(mappingDestClass)) {
if ((destClass.isAssignableFrom(mappingDestClass) && isAbstract(destClass)) || (isInterfaceImplementation(
  destClass, mappingDestClass))) {
  if (MappingUtils.getRealClass(srcClass).equals(mappingSrcClass)) {
org.dozer.classmapClassMappingsisInterfaceImplementation

Popular methods of ClassMappings

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

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now