/** * {@inheritDoc} * * @see org.apache.commons.collections.Closure#execute(java.lang.Object) * @throws IllegalArgumentException * if property is null. * @throws FunctorException * if KettleException in handle thrown. */ public final void execute(final Object property) throws IllegalArgumentException, FunctorException { Assert.assertNotNull(property, "Plugin property cannot be null"); try { this.handle((PluginProperty) property); } catch (KettleException e) { throw new FunctorException("EXCEPTION: " + this, e); } }
/** * @param properties * properties. * @param handler * handler. * @throws KettleException * ... * @throws IllegalArgumentException * if properties is null. */ public static void walk(final KeyValueSet properties, final Closure handler) throws KettleException, IllegalArgumentException { assertProperties(properties); try { properties.walk(handler); } catch (FunctorException e) { throw (KettleException) e.getCause(); } }
/** * {@inheritDoc} * * @see org.apache.commons.collections.Closure#execute(java.lang.Object) * @throws IllegalArgumentException * if property is null. * @throws FunctorException * if KettleException in handle thrown. */ public final void execute( final Object property ) throws IllegalArgumentException, FunctorException { Assert.assertNotNull( property, "Plugin property cannot be null" ); try { this.handle( (PluginProperty) property ); } catch ( KettleException e ) { throw new FunctorException( "EXCEPTION: " + this, e ); } }
/** * @param properties * properties. * @param handler * handler. * @throws KettleException * ... * @throws IllegalArgumentException * if properties is null. */ public static void walk( final KeyValueSet properties, final Closure handler ) throws KettleException, IllegalArgumentException { assertProperties( properties ); try { properties.walk( handler ); } catch ( FunctorException e ) { throw (KettleException) e.getCause(); } }