/** * {@inheritDoc} * * @see org.pentaho.di.trans.step.BaseStepMeta#getXML() */ @Override public String getXML() throws KettleException { return PluginPropertyHandler.toXml( this.getProperties() ); }
/** * {@inheritDoc} * * @see org.pentaho.di.trans.step.StepMetaInterface#saveRep(org.pentaho.di.repository.Repository, long, long) */ public void saveRep( final Repository repo, final IMetaStore metaStore, final ObjectId transformationId, final ObjectId stepId ) throws KettleException { final SaveToRepository handler = new SaveToRepository( repo, metaStore, transformationId, stepId ); PluginPropertyHandler.walk( this.getProperties(), handler ); }
/** * @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(); } }
/** * @param properties * properties * @return XML String * @throws IllegalArgumentException * if properties is null */ public static String toXml( final KeyValueSet properties ) throws IllegalArgumentException { assertProperties( properties ); final AppendXml handler = new AppendXml(); properties.walk( handler ); return handler.getXml(); }
/** * {@inheritDoc} * * @see org.pentaho.di.trans.step.StepMetaInterface#readRep(org.pentaho.di.repository.Repository, long, * java.util.List, java.util.Map) */ public void readRep( final Repository repo, final IMetaStore metaStore, final ObjectId stepId, final List<DatabaseMeta> databaseList ) throws KettleException { PluginPropertyHandler.walk( this.getProperties(), new ReadFromRepository( repo, metaStore, stepId ) ); initDbMeta( databaseList ); }