Class Validation
java.lang.Object
org.pentaho.di.trans.steps.validator.Validation
- All Implemented Interfaces:
Cloneable
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionValidation
(String name) Validation
(Repository rep, org.pentaho.di.repository.ObjectId id_step, int i) Validation
(Node calcnode) -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
equals
(Validation validation) static Validation
findValidation
(List<Validation> validations, String name) Find a validation by name in a list of validationsString[]
int
getName()
getXML()
boolean
boolean
boolean
boolean
boolean
void
saveRep
(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId id_transformation, org.pentaho.di.repository.ObjectId id_step, int i) void
setAllowedValues
(String[] allowedValues) void
setConversionMask
(String conversionMask) void
setDataType
(int dataType) void
setDataTypeVerified
(boolean dataTypeVerified) void
setDecimalSymbol
(String decimalSymbol) void
setEndString
(String endString) void
setEndStringNotAllowed
(String endStringNotAllowed) void
setErrorCode
(String errorCode) void
setErrorDescription
(String errorDescription) void
setFieldName
(String fieldName) void
setGroupingSymbol
(String groupingSymbol) void
setMaximumLength
(String maximumLength) void
setMaximumValue
(String maximumValue) void
setMinimumLength
(String minimumLength) void
setMinimumValue
(String minimumValue) void
void
setNullAllowed
(boolean nullAllowed) void
setOnlyNullAllowed
(boolean onlyNullAllowed) void
setOnlyNumericAllowed
(boolean onlyNumericAllowed) void
setRegularExpression
(String regularExpression) void
setRegularExpressionNotAllowed
(String regularExpressionNotAllowed) void
setSourcingField
(String sourcingField) void
setSourcingStep
(StepMeta sourcingStep) void
setSourcingStepName
(String sourcingStepName) void
setSourcingValues
(boolean sourcingValues) void
setStartString
(String startString) void
setStartStringNotAllowed
(String startStringNotAllowed)
-
Field Details
-
XML_TAG
- See Also:
-
XML_TAG_ALLOWED
- See Also:
-
-
Constructor Details
-
Validation
public Validation() -
Validation
-
Validation
- Throws:
org.pentaho.di.core.exception.KettleXMLException
-
Validation
public Validation(Repository rep, org.pentaho.di.repository.ObjectId id_step, int i) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
-
Method Details
-
clone
-
equals
-
getXML
-
saveRep
public void saveRep(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId id_transformation, org.pentaho.di.repository.ObjectId id_step, int i) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
getFieldName
- Returns:
- the field name to validate
-
setFieldName
- Parameters:
fieldName
- the field name to validate
-
getMaximumLength
- Returns:
- the maximumLength
-
setMaximumLength
- Parameters:
maximumLength
- the maximumLength to set
-
getMinimumLength
- Returns:
- the minimumLength
-
setMinimumLength
- Parameters:
minimumLength
- the minimumLength to set
-
isNullAllowed
public boolean isNullAllowed()- Returns:
- the nullAllowed
-
setNullAllowed
public void setNullAllowed(boolean nullAllowed) - Parameters:
nullAllowed
- the nullAllowed to set
-
getDataType
public int getDataType()- Returns:
- the dataType
-
setDataType
public void setDataType(int dataType) - Parameters:
dataType
- the dataType to set
-
getConversionMask
- Returns:
- the conversionMask
-
setConversionMask
- Parameters:
conversionMask
- the conversionMask to set
-
getDecimalSymbol
- Returns:
- the decimalSymbol
-
setDecimalSymbol
- Parameters:
decimalSymbol
- the decimalSymbol to set
-
getGroupingSymbol
- Returns:
- the groupingSymbol
-
setGroupingSymbol
- Parameters:
groupingSymbol
- the groupingSymbol to set
-
getMinimumValue
- Returns:
- the minimumValue
-
setMinimumValue
- Parameters:
minimumValue
- the minimumValue to set
-
getMaximumValue
- Returns:
- the maximumValue
-
setMaximumValue
- Parameters:
maximumValue
- the maximumValue to set
-
getAllowedValues
- Returns:
- the allowedValues
-
setAllowedValues
- Parameters:
allowedValues
- the allowedValues to set
-
isDataTypeVerified
public boolean isDataTypeVerified()- Returns:
- the dataTypeVerified
-
setDataTypeVerified
public void setDataTypeVerified(boolean dataTypeVerified) - Parameters:
dataTypeVerified
- the dataTypeVerified to set
-
getErrorCode
- Returns:
- the errorCode
-
setErrorCode
- Parameters:
errorCode
- the errorCode to set
-
getErrorDescription
- Returns:
- the errorDescription
-
setErrorDescription
- Parameters:
errorDescription
- the errorDescription to set
-
isOnlyNumericAllowed
public boolean isOnlyNumericAllowed()- Returns:
- true if only numeric values are allowed: A numeric data type, a date or a String containing digits only
-
getStartString
- Returns:
- the startString
-
setStartString
- Parameters:
startString
- the startString to set
-
getStartStringNotAllowed
- Returns:
- the startStringNotAllowed
-
setStartStringNotAllowed
- Parameters:
startStringNotAllowed
- the startStringNotAllowed to set
-
getEndString
- Returns:
- the endString
-
setEndString
- Parameters:
endString
- the endString to set
-
getEndStringNotAllowed
- Returns:
- the endStringNotAllowed
-
setEndStringNotAllowed
- Parameters:
endStringNotAllowed
- the endStringNotAllowed to set
-
setOnlyNumericAllowed
public void setOnlyNumericAllowed(boolean onlyNumericAllowed) - Parameters:
onlyNumericAllowed
- the onlyNumericAllowed to set
-
getRegularExpression
- Returns:
- the regularExpression
-
setRegularExpression
- Parameters:
regularExpression
- the regularExpression to set
-
getName
- Returns:
- the name of this validation
-
setName
- Parameters:
name
- the new name for this validation
-
getRegularExpressionNotAllowed
- Returns:
- the regularExpressionNotAllowed
-
setRegularExpressionNotAllowed
- Parameters:
regularExpressionNotAllowed
- the regularExpressionNotAllowed to set
-
findValidation
Find a validation by name in a list of validations- Parameters:
validations
- The list to searchname
- the name to search for- Returns:
- the validation if one matches or null if none is found.
-
isOnlyNullAllowed
public boolean isOnlyNullAllowed()- Returns:
- the onlyNullAllowed
-
setOnlyNullAllowed
public void setOnlyNullAllowed(boolean onlyNullAllowed) - Parameters:
onlyNullAllowed
- the onlyNullAllowed to set
-
isSourcingValues
public boolean isSourcingValues()- Returns:
- the sourcingValues
-
setSourcingValues
public void setSourcingValues(boolean sourcingValues) - Parameters:
sourcingValues
- the sourcingValues to set
-
getSourcingField
- Returns:
- the sourcingField
-
setSourcingField
- Parameters:
sourcingField
- the sourcingField to set
-
getSourcingStepName
- Returns:
- the sourcingStepName
-
setSourcingStepName
- Parameters:
sourcingStepName
- the sourcingStepName to set
-
getSourcingStep
- Returns:
- the sourcingStep
-
setSourcingStep
- Parameters:
sourcingStep
- the sourcingStep to set
-