public void getFields( RowMetaInterface row, String name, RowMetaInterface[] info, StepMeta nextStep, VariableSpace space) throws KettleStepException { // the folderName ValueMetaInterface folderName = new ValueMeta("folderName", ValueMeta.TYPE_STRING); folderName.setLength(500); folderName.setPrecision(-1); folderName.setOrigin(name); row.addValueMeta(folderName); // the short folderName ValueMetaInterface short_folderName = new ValueMeta("short_folderName", ValueMeta.TYPE_STRING); short_folderName.setLength(500); short_folderName.setPrecision(-1); short_folderName.setOrigin(name); row.addValueMeta(short_folderName); // the path ValueMetaInterface path = new ValueMeta("path", ValueMeta.TYPE_STRING); path.setLength(500); path.setPrecision(-1); path.setOrigin(name); row.addValueMeta(path); // the ishidden ValueMetaInterface ishidden = new ValueMeta("ishidden", ValueMeta.TYPE_BOOLEAN); ishidden.setOrigin(name); row.addValueMeta(ishidden); // the isreadable ValueMetaInterface isreadable = new ValueMeta("isreadable", ValueMeta.TYPE_BOOLEAN); isreadable.setOrigin(name); row.addValueMeta(isreadable); // the iswriteable ValueMetaInterface iswriteable = new ValueMeta("iswriteable", ValueMeta.TYPE_BOOLEAN); iswriteable.setOrigin(name); row.addValueMeta(iswriteable); // the lastmodifiedtime ValueMetaInterface lastmodifiedtime = new ValueMeta("lastmodifiedtime", ValueMeta.TYPE_DATE); lastmodifiedtime.setOrigin(name); row.addValueMeta(lastmodifiedtime); // the uri ValueMetaInterface uri = new ValueMeta("uri", ValueMeta.TYPE_STRING); uri.setOrigin(name); row.addValueMeta(uri); // the rooturi ValueMetaInterface rooturi = new ValueMeta("rooturi", ValueMeta.TYPE_STRING); rooturi.setOrigin(name); row.addValueMeta(rooturi); // childrens ValueMetaInterface childrens = new ValueMeta(space.environmentSubstitute("childrens"), ValueMeta.TYPE_INTEGER); childrens.setLength(ValueMetaInterface.DEFAULT_INTEGER_LENGTH, 0); childrens.setOrigin(name); row.addValueMeta(childrens); if (includeRowNumber) { ValueMetaInterface v = new ValueMeta(space.environmentSubstitute(rowNumberField), ValueMeta.TYPE_INTEGER); v.setLength(ValueMetaInterface.DEFAULT_INTEGER_LENGTH, 0); v.setOrigin(name); row.addValueMeta(v); } }