Package net.sf.isolation.conversion

Examples of net.sf.isolation.conversion.IsoConversionNotSupportedException


    if (type == String.class) {
      @SuppressWarnings("unchecked")
      T t = (T) (value == null ? null : value.toString());
      return t;
    }
    throw new IsoConversionNotSupportedException(type.getName());
  }
View Full Code Here


    Map<Class<?>, IsoConverter> convertersBySourceTypes = convertersByTargetTypes
        .get(targetType);
    if (convertersBySourceTypes == null) {
      log.warn("(Step 1) Not Configured {0} -> ${1}",
          sourceType.getName(), targetType.getName());
      throw new IsoConversionNotSupportedException(sourceType.getName()
          + "->" + targetType.getName());
    }
    IsoConverter converter = convertersBySourceTypes.get(sourceType);
    if (converter == null) {
      log.warn("(Step 2) Not Configured {0} -> ${1}",
          sourceType.getName(), targetType.getName());
      throw new IsoConversionNotSupportedException(sourceType.getName()
          + "->" + targetType.getName());
    } else {
      return converter.convert(targetType, value);
    }
  }
View Full Code Here

          throw new IsoConversionException(String.valueOf(value),
              exception);
        }
      }
    }
    throw new IsoConversionNotSupportedException(type.getName());
  }
View Full Code Here

      throw new IsoConversionException(String.valueOf(value), exception);
    }
    if (type == String.class) {
      return (T) (value == null ? null : value.toString());
    }
    throw new IsoConversionNotSupportedException(type.getName());
  }
View Full Code Here

      } catch (ClassCastException exception) {
        throw new IsoConversionException(String.valueOf(value),
            exception);
      }
    }
    throw new IsoConversionNotSupportedException(type.getName());
  }
View Full Code Here

      throw new IsoConversionException(String.valueOf(value), exception);
    }
    if (type == String.class) {
      return value == null ? null : value.toString();
    }
    throw new IsoConversionNotSupportedException(type.getName());
  }
View Full Code Here

      throw new IsoConversionException(String.valueOf(value), exception);
    }
    if (type == String.class) {
      return value == null ? null : value.toString();
    }
    throw new IsoConversionNotSupportedException(type.getName());
  }
View Full Code Here

    Map<Class<?>, IsoConverter> convertersBySourceTypes = convertersByTargetTypes
        .get(targetType);
    if (convertersBySourceTypes == null) {
      log.warn("(Step 1) Not Configured {0} -> ${1}", sourceType
          .getName(), targetType.getName());
      throw new IsoConversionNotSupportedException(sourceType.getName()
          + "->" + targetType.getName());
    }
    IsoConverter converter = convertersBySourceTypes.get(sourceType);
    if (converter == null) {
      log.warn("(Step 2) Not Configured {0} -> ${1}", sourceType
          .getName(), targetType.getName());
      throw new IsoConversionNotSupportedException(sourceType.getName()
          + "->" + targetType.getName());
    } else {
      return converter.convert(targetType, value);
    }
  }
View Full Code Here

      throw new IsoConversionException(String.valueOf(value), exception);
    }
    if (type == String.class) {
      return value == null ? null : value.toString();
    }
    throw new IsoConversionNotSupportedException(type.getName());
  }
View Full Code Here

    Map<Class<?>, IsoConverter> convertersBySourceTypes = convertersByTargetTypes
        .get(targetType);
    if (convertersBySourceTypes == null) {
      log.warn("(Step 1) Not Configured {0} -> ${1}", sourceType
          .getName(), targetType.getName());
      throw new IsoConversionNotSupportedException(sourceType.getName()
          + "->" + targetType.getName());
    }
    IsoConverter converter = convertersBySourceTypes.get(sourceType);
    if (converter == null) {
      log.warn("(Step 2) Not Configured {0} -> ${1}", sourceType
          .getName(), targetType.getName());
      throw new IsoConversionNotSupportedException(sourceType.getName()
          + "->" + targetType.getName());
    } else {
      return converter.convert(targetType, value);
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.isolation.conversion.IsoConversionNotSupportedException

Copyright © 2018 www.massapicom. 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.