use of org.pentaho.di.core.row.ValueMeta in project pentaho-kettle by pentaho.
the class GetXMLDataTest method createRowMetaInterface.
public RowMetaInterface createRowMetaInterface() {
RowMetaInterface rm = new RowMeta();
ValueMetaInterface[] valuesMeta = { new ValueMeta("field1", ValueMeta.TYPE_STRING) };
for (int i = 0; i < valuesMeta.length; i++) {
rm.addValueMeta(valuesMeta[i]);
}
return rm;
}
use of org.pentaho.di.core.row.ValueMeta in project pentaho-kettle by pentaho.
the class XsltTest method createRowMetaInterface.
public RowMetaInterface createRowMetaInterface() {
RowMetaInterface rm = new RowMeta();
ValueMetaInterface[] valuesMeta = { new ValueMeta("XML", ValueMeta.TYPE_STRING), new ValueMeta("XSL", ValueMeta.TYPE_STRING), new ValueMeta("filename", ValueMeta.TYPE_STRING) };
for (int i = 0; i < valuesMeta.length; i++) {
rm.addValueMeta(valuesMeta[i]);
}
return rm;
}
use of org.pentaho.di.core.row.ValueMeta in project pentaho-kettle by pentaho.
the class XMLOutputMeta method getRequiredFields.
public RowMetaInterface getRequiredFields(VariableSpace space) throws KettleException {
RowMeta row = new RowMeta();
for (int i = 0; i < outputFields.length; i++) {
XMLField field = outputFields[i];
row.addValueMeta(new ValueMeta(field.getFieldName(), field.getType(), field.getLength(), field.getPrecision()));
}
return row;
}
use of org.pentaho.di.core.row.ValueMeta in project pentaho-kettle by pentaho.
the class XsdValidatorMeta method getFields.
public void getFields(RowMetaInterface inputRowMeta, String name, RowMetaInterface[] info, StepMeta nextStep, VariableSpace space, Repository repository, IMetaStore metaStore) throws KettleStepException {
if (!Utils.isEmpty(resultFieldname)) {
if (outputStringField) {
// Output field (String)
ValueMetaInterface v = new ValueMeta(space.environmentSubstitute(getResultfieldname()), ValueMeta.TYPE_STRING);
inputRowMeta.addValueMeta(v);
} else {
// Output field (boolean)
ValueMetaInterface v = new ValueMeta(space.environmentSubstitute(getResultfieldname()), ValueMeta.TYPE_BOOLEAN);
inputRowMeta.addValueMeta(v);
}
}
// Add String Field that contain validation message (most the time, errors)
if (addValidationMessage && !Utils.isEmpty(validationMessageField)) {
ValueMetaInterface v = new ValueMeta(space.environmentSubstitute(validationMessageField), ValueMeta.TYPE_STRING);
inputRowMeta.addValueMeta(v);
}
}
use of org.pentaho.di.core.row.ValueMeta in project pentaho-kettle by pentaho.
the class XsltMeta method getFields.
public void getFields(RowMetaInterface inputRowMeta, String name, RowMetaInterface[] info, StepMeta nextStep, VariableSpace space, Repository repository, IMetaStore metaStore) throws KettleStepException {
// Output field (String)
ValueMetaInterface v = new ValueMeta(space.environmentSubstitute(getResultfieldname()), ValueMeta.TYPE_STRING);
v.setOrigin(name);
inputRowMeta.addValueMeta(v);
}
Aggregations