/** * {@inheritDoc} * * @see at.aschauer.commons.pentaho.plugin.PluginProperty#saveToPreferences(java.util.prefs.Preferences) */ public void saveToPreferences( final Preferences node ) { node.put( this.getKey(), asString( this.getValue() ) ); }
/** * {@inheritDoc} * * @see at.aschauer.commons.pentaho.plugin.PluginProperty#appendXml(java.lang.StringBuilder) */ public void appendXml( final StringBuilder builder ) { if ( !this.evaluate() ) { return; } final String value = asString( this.getValue() ); builder.append( XMLHandler.addTagValue( this.getKey(), value ) ); }
/** * {@inheritDoc} * * @see at.aschauer.commons.pentaho.plugin.PluginProperty#loadXml(org.w3c.dom.Node) */ public void loadXml( final Node node ) { final String stringValue = XMLHandler.getTagValue( node, this.getKey() ); final List<String> values = fromString( stringValue ); this.setValue( values ); }
/** * {@inheritDoc} * * @see at.aschauer.commons.pentaho.plugin.PluginProperty#readFromPreferences(java.util.prefs.Preferences) */ public void readFromPreferences( final Preferences node ) { final String stringValue = node.get( this.getKey(), asString( this.getValue() ) ); this.setValue( fromString( stringValue ) ); }
/** * {@inheritDoc} * * @see at.aschauer.commons.pentaho.plugin.PluginProperty#readFromRepositoryStep(org.pentaho.di.repository.Repository, * long) */ public void readFromRepositoryStep( final Repository repository, final IMetaStore metaStore, final ObjectId stepId ) throws KettleException { final String stringValue = repository.getStepAttributeString( stepId, this.getKey() ); this.setValue( fromString( stringValue ) ); }
/** * {@inheritDoc} * * @see at.aschauer.commons.pentaho.plugin.PluginProperty#saveToRepositoryStep(org.pentaho.di.repository.Repository, * long, long) */ public void saveToRepositoryStep( final Repository repository, final IMetaStore metaStore, final ObjectId transformationId, final ObjectId stepId ) throws KettleException { final String stringValue = asString( this.getValue() ); repository.saveStepAttribute( transformationId, stepId, this.getKey(), stringValue ); }