Package org.unidata.mdm.dq.core.dto
Class CleanseFunctionResult
- java.lang.Object
-
- org.unidata.mdm.dq.core.dto.CleanseFunctionResult
-
public class CleanseFunctionResult extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CleanseFunctionResult()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddError(DataQualityError error)Adds an error to the error collection.voidaddErrors(java.util.Collection<DataQualityError> errors)Adds errors to the error collection.voidaddSpot(DataQualitySpot failure)Adds a failure/problem spot as object.voidaddSpots(java.util.Collection<DataQualitySpot> failures)Adds failure/problem spots to the spots collection.java.util.List<DataQualityError>getErrors()Gets all collected errors.CleanseFunctionOutputParamgetOutputParam(java.lang.String portName)Gets output param by port name.java.util.Collection<CleanseFunctionOutputParam>getOutputParams()Gets output params as a collection.java.util.Collection<java.lang.String>getOutputPorts()Gets output port names.java.util.List<DataQualitySpot>getSpots()Gets failed paths collection at whole.booleanhasErrors()Returns true, if the result has collected some errors.booleanhasOutputParams()Returns true, if this result has some output params set.booleanhasSpots()Returns true, if this result contains failed validation paths.voidputOutputParam(CleanseFunctionOutputParam param)Puts an output param to output map.
-
-
-
Method Detail
-
getOutputParam
public CleanseFunctionOutputParam getOutputParam(java.lang.String portName)
Gets output param by port name.- Parameters:
portName- the port name- Returns:
- param or null, if not found
-
getOutputParams
public java.util.Collection<CleanseFunctionOutputParam> getOutputParams()
Gets output params as a collection.- Returns:
- params collection
-
putOutputParam
public void putOutputParam(CleanseFunctionOutputParam param)
Puts an output param to output map.- Parameters:
param- the param value
-
hasOutputParams
public boolean hasOutputParams()
Returns true, if this result has some output params set.- Returns:
- true, if this result has some output params set
-
getOutputPorts
public java.util.Collection<java.lang.String> getOutputPorts()
Gets output port names.- Returns:
- the names
-
getErrors
public java.util.List<DataQualityError> getErrors()
Gets all collected errors.- Returns:
- the errors
-
addError
public void addError(DataQualityError error)
Adds an error to the error collection.- Parameters:
error- the error to add
-
addErrors
public void addErrors(java.util.Collection<DataQualityError> errors)
Adds errors to the error collection.- Parameters:
errors- the errors to add
-
hasErrors
public boolean hasErrors()
Returns true, if the result has collected some errors.- Returns:
- true, if the result has collected some errors
-
getSpots
public java.util.List<DataQualitySpot> getSpots()
Gets failed paths collection at whole.- Returns:
- failed paths collection
-
addSpot
public void addSpot(DataQualitySpot failure)
Adds a failure/problem spot as object.- Parameters:
failure- the failure to add
-
addSpots
public void addSpots(java.util.Collection<DataQualitySpot> failures)
Adds failure/problem spots to the spots collection.- Parameters:
failures- the spots to add
-
hasSpots
public boolean hasSpots()
Returns true, if this result contains failed validation paths.- Returns:
- true, if this result contains failed validation paths
-
-