Examples of HintContainer


Examples of org.dozer.fieldmap.HintContainer

    // if they provided hints
    // if no hint is provided then we will use generics to determine the mapping type
    if (fieldMap.getDestHintContainer() == null) {
      Class<?> genericType = fieldMap.getGenericType(destObj.getClass());
      if (genericType != null) {
        HintContainer destHintContainer = new HintContainer();
        destHintContainer.setHintName(genericType.getName());
        FieldMap cloneFieldMap = (FieldMap) fieldMap.clone();
        cloneFieldMap.setDestHintContainer(destHintContainer); // should affect only this time as fieldMap is cloned
        fieldMap = cloneFieldMap;
      }
    }
View Full Code Here

Examples of org.dozer.fieldmap.HintContainer

    public void removeOrphans(boolean value) {
      this.removeOrphans = value;
    }

    public void srcHintContainer(String hint) {
      HintContainer hintContainer = new HintContainer();
      hintContainer.setHintName(hint);
      this.srcHintContainer = hintContainer;
    }
View Full Code Here

Examples of org.dozer.fieldmap.HintContainer

      hintContainer.setHintName(hint);
      this.srcHintContainer = hintContainer;
    }

    public void destHintContainer(String hint) {
      HintContainer hintContainer = new HintContainer();
      hintContainer.setHintName(hint);
      this.destHintContainer = hintContainer;
    }
View Full Code Here

Examples of org.dozer.fieldmap.HintContainer

      hintContainer.setHintName(hint);
      this.destHintContainer = hintContainer;
    }

    public void srcDeepIndexHintContainer(String hint) {
      HintContainer hintContainer = new HintContainer();
      hintContainer.setHintName(hint);
      this.srcDeepIndexHintContainer = hintContainer;
    }
View Full Code Here

Examples of org.dozer.fieldmap.HintContainer

      hintContainer.setHintName(hint);
      this.srcDeepIndexHintContainer = hintContainer;
    }

    public void destDeepIndexHintContainer(String hint) {
      HintContainer hintContainer = new HintContainer();
      hintContainer.setHintName(hint);
      this.destDeepIndexHintContainer = hintContainer;
    }
View Full Code Here

Examples of org.dozer.fieldmap.HintContainer

        if (o instanceof List<?>) {
            List<?> l = (List<?>) o;
            if (l.size() > 0) {
                // Correction : prise en compte du cas o� la liste contient des nulls.
                Class<?> c = null;
                HintContainer hc = new HintContainer();
                for (Object element : l) {
                    if (element != null) {
                        c = element.getClass();
                        break;
                    }
                }
                if (c == null) {
                    c = Void.class;
                }
                hc.setHintName(c.getName());
                fm.setDestHintContainer(hc);
            }
        }

    }
View Full Code Here

Examples of org.dozer.fieldmap.HintContainer

        if (o instanceof List<?>) {
            List<?> l = (List<?>) o;
            if (l.size() > 0) {
                // Correction : prise en compte du cas o� la liste contient des nulls.
                Class<?> c = null;
                HintContainer hc = new HintContainer();
                for (Object element : l) {
                    if (element != null) {
                        c = element.getClass();
                        break;
                    }
                }
                if (c == null) {
                    c = Void.class;
                }
                hc.setHintName(c.getName());
                fm.setDestHintContainer(hc);
            }
        }

    }
View Full Code Here

Examples of org.dozer.fieldmap.HintContainer

        if (o instanceof List<?>) {
            List<?> l = (List<?>) o;
            if (l.size() > 0) {
                // Correction : prise en compte du cas o� la liste contient des nulls.
                Class<?> c = null;
                HintContainer hc = new HintContainer();
                for (Object element : l) {
                    if (element != null) {
                        c = element.getClass();
                        break;
                    }
                }
                if (c == null) {
                    c = Void.class;
                }
                hc.setHintName(c.getName());
                fm.setDestHintContainer(hc);
            }
        }

    }
View Full Code Here

Examples of org.dozer.fieldmap.HintContainer

        if (o instanceof List<?>) {
            List<?> l = (List<?>) o;
            if (l.size() > 0) {
                // Correction : prise en compte du cas o� la liste contient des nulls.
                Class<?> c = null;
                HintContainer hc = new HintContainer();
                for (Object element : l) {
                    if (element != null) {
                        c = element.getClass();
                        break;
                    }
                }
                if (c == null) {
                    c = Void.class;
                }
                hc.setHintName(c.getName());
                fm.setDestHintContainer(hc);
            }
        }

    }
View Full Code Here

Examples of org.dozer.fieldmap.HintContainer

        if (o instanceof List<?>) {
            List<?> l = (List<?>) o;
            if (l.size() > 0) {
                // Correction : prise en compte du cas o� la liste contient des nulls.
                Class<?> c = null;
                HintContainer hc = new HintContainer();
                for (Object element : l) {
                    if (element != null) {
                        c = element.getClass();
                        break;
                    }
                }
                if (c == null) {
                    c = Void.class;
                }
                hc.setHintName(c.getName());
                fm.setDestHintContainer(hc);
            }
        }

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.