com.sap.mdm.validation
Interface ValidationResult


public interface ValidationResult

This class represents the result of a validation.


Method Summary
 RecordId[] getFailedRecords()
          Returns the total list of failed records for all checked validations.
 RecordId[] getFailedRecords(ValidationId validationId)
          Returns the list of records that failed to pass the specified validation.
 ValidationProperties[] getFailedValidations()
          Returns the total list of failed validations for all checked records.
 ValidationProperties[] getFailedValidations(RecordId recordId)
          Returns the list of validations that the specified record failed to pass.
 RecordId[] getRecordIds()
          Returns the list of records validated.
 int getTotalValidationsFailed()
          Returns the total number of validations failed.
 ValidationProperties[] getValidations()
          Returns the list of validations applied.
 boolean hasDetails()
          Returns true when the validation result has details information which record failed which validations, otherwise returns false.
 

Method Detail

getValidations

public ValidationProperties[] getValidations()
Returns the list of validations applied.

Returns:
the list of validations

getRecordIds

public RecordId[] getRecordIds()
Returns the list of records validated.

Returns:
the list of records

getFailedRecords

public RecordId[] getFailedRecords()
Returns the total list of failed records for all checked validations.

Returns:
the list of record Ids

getFailedRecords

public RecordId[] getFailedRecords(ValidationId validationId)
Returns the list of records that failed to pass the specified validation.

Note: This method will return null when such details are not available.

Parameters:
validationId - the validation rule to check
Returns:
the list of record Ids

getFailedValidations

public ValidationProperties[] getFailedValidations()
Returns the total list of failed validations for all checked records.

Returns:
the list of validations

getFailedValidations

public ValidationProperties[] getFailedValidations(RecordId recordId)
Returns the list of validations that the specified record failed to pass.

Note: This method will return null when such details are not available.

Parameters:
recordId - the record Id to check
Returns:
the list of validations

getTotalValidationsFailed

public int getTotalValidationsFailed()
Returns the total number of validations failed.

Returns:
the total number

hasDetails

public boolean hasDetails()
Returns true when the validation result has details information which record failed which validations, otherwise returns false.

Returns:
true if has details, otherwise false
Since:
7.1 SP7


Copyright 2004-2007 by SAP AG. All Rights Reserved.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.