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

      return editor;
   }
public static PropertyEditor getEditor(final Class<?> type)
   {
      PropertyEditor editor = findEditor(type);
      if (editor == null)
      {
         throw new RuntimeException("No property editor for type: " + type);
      }

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

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

@throws RuntimeException   No editor was found.
Get a value editor for a given target type .