Package org.araneaframework.uilib

Examples of org.araneaframework.uilib.ConverterNotFoundException


   *
   * @throws ConverterNotFoundException
   *           if {@link BaseConverter}is not found
   */
  public Converter findConverter(String fromType, String toType) throws ConverterNotFoundException {
    if (fromType == null || toType == null) throw new ConverterNotFoundException(fromType, toType);
    if (fromType.equals(toType)) {
      return new IdenticalConverter();
    }
    else if ("Object".equals(fromType) || "Object".equals(toType)) {
      return new IdenticalConverter();
    }
    else {
      Converter result = ((Converter) converters.get(new ConverterKey(fromType, toType)));

      if (result == null) throw new ConverterNotFoundException(fromType, toType);

      return result.newConverter();
    }
  }
View Full Code Here

TOP

Related Classes of org.araneaframework.uilib.ConverterNotFoundException

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.