Beispiel #1
0
  private Object getValue(final BindingSide bindingSide, final Object object) {
    notNull(bindingSide, "bindingSide");
    notNull(object, "object");

    if (_destinationMember.isGetterAvailable() == false) {
      throw new MappingException("Getter not available for " + bindingSide);
    }

    Object getValueResult = bindingSide.getValue(object);

    return getValueResult;
  }
Beispiel #2
0
  /**
   * Sets value at destination.
   *
   * @param mapper caller.
   * @param destination destination object.
   * @param value value to set.
   */
  protected void setValueAtDestination(
      final Mapper mapper, final Object destination, final Object value) {
    notNull(destination, "destination");

    _destinationMember.setValue(destination, value);
  }