public class StepErrorMeta extends ChangedFlag implements XMLInterface, Cloneable
| Modifier and Type | Field and Description |
|---|---|
static String |
XML_ERROR_TAG |
static String |
XML_SOURCE_STEP_TAG |
static String |
XML_TARGET_STEP_TAG |
| Constructor and Description |
|---|
StepErrorMeta(VariableSpace variables,
Node node,
List<StepMeta> steps) |
StepErrorMeta(VariableSpace space,
StepMeta sourceStep)
Create a new step error handling metadata object
|
StepErrorMeta(VariableSpace space,
StepMeta sourceStep,
StepMeta targetStep)
Create a new step error handling metadata object
|
StepErrorMeta(VariableSpace space,
StepMeta sourceStep,
StepMeta targetStep,
String nrErrorsValuename,
String errorDescriptionsValuename,
String errorFieldsValuename,
String errorCodesValuename)
Create a new step error handling metadata object
|
addObserver, clearChanged, deleteObserver, hasChanged, notifyObservers, setChanged, setChangedpublic static final String XML_ERROR_TAG
public static final String XML_SOURCE_STEP_TAG
public static final String XML_TARGET_STEP_TAG
public StepErrorMeta(VariableSpace space, StepMeta sourceStep)
sourceStep - The source step that can send the error rowspublic StepErrorMeta(VariableSpace space, StepMeta sourceStep, StepMeta targetStep)
sourceStep - The source step that can send the error rowstargetStep - The target step to send the error rows topublic StepErrorMeta(VariableSpace space, StepMeta sourceStep, StepMeta targetStep, String nrErrorsValuename, String errorDescriptionsValuename, String errorFieldsValuename, String errorCodesValuename)
sourceStep - The source step that can send the error rowstargetStep - The target step to send the error rows tonrErrorsValuename - the name of the field value to contain the number of errors (null or empty means it's not needed)errorDescriptionsValuename - the name of the field value to contain the error description(s) (null or empty means it's not needed)errorFieldsValuename - the name of the field value to contain the fields for which the error(s) occured (null or empty means it's
not needed)errorCodesValuename - the name of the field value to contain the error code(s) (null or empty means it's not needed)public StepErrorMeta(VariableSpace variables, Node node, List<StepMeta> steps)
public StepErrorMeta clone()
public String getXML()
getXML in interface XMLInterfacepublic String getErrorCodesValuename()
public void setErrorCodesValuename(String errorCodesValuename)
errorCodesValuename - the error codes valuename to setpublic String getErrorDescriptionsValuename()
public void setErrorDescriptionsValuename(String errorDescriptionsValuename)
errorDescriptionsValuename - the error descriptions valuename to setpublic String getErrorFieldsValuename()
public void setErrorFieldsValuename(String errorFieldsValuename)
errorFieldsValuename - the error fields valuename to setpublic String getNrErrorsValuename()
public void setNrErrorsValuename(String nrErrorsValuename)
nrErrorsValuename - the nr errors valuename to setpublic StepMeta getTargetStep()
public void setTargetStep(StepMeta targetStep)
targetStep - the target step to setpublic StepMeta getSourceStep()
public void setSourceStep(StepMeta sourceStep)
sourceStep - The source step can send the error rowspublic boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - the enabled flag to set: Is the error handling enabled?public RowMetaInterface getErrorFields()
public RowMetaInterface getErrorRowMeta(long nrErrors, String errorDescriptions, String fieldNames, String errorCodes)
public void addErrorRowData(Object[] row, int startIndex, long nrErrors, String errorDescriptions, String fieldNames, String errorCodes)
public String getMaxErrors()
public void setMaxErrors(String maxErrors)
maxErrors - the maxErrors to setpublic String getMaxPercentErrors()
public void setMaxPercentErrors(String maxPercentErrors)
maxPercentErrors - the maxPercentErrors to setpublic String getMinPercentRows()
public void setMinPercentRows(String minRowsForPercent)
minRowsForPercent - the minRowsForPercent to setCopyright © 2018 Hitachi Vantara. All rights reserved.