src/main/java/org/jboss/util/propertyeditor/PropertyEditors.java
public static PropertyEditor getEditor(final String typeName)
      throws ClassNotFoundException
   {
      PropertyEditor editor = findEditor(typeName);
      if (editor == null)
      {
         throw new RuntimeException("No property editor for type: " + typeName);
      }

      return editor;
   }
public static PropertyEditor getEditor(final String typeName)
      throws ClassNotFoundException
   {
      PropertyEditor editor = findEditor(typeName);
      if (editor == null)
      {
         throw new RuntimeException("No property editor for type: " + typeName);
      }

      return editor;
   }
public static PropertyEditor getEditor ( final String typeName ) throws ClassNotFoundException { PropertyEditor editor = findEditor ( typeName ) ; if ( editor == null ) { throw new RuntimeException ( "No property editor for type: " + typeName ) ; } return editor ; }
Get a value editor for a given target type.

@param typeName    The class name of the object to be edited.
@return            An editor for the given type.

@throws RuntimeException   No editor was found.
@throws ClassNotFoundException when the class is not found
Get a value editor for a given target type .