com.sap.mdm.matching
Class MatchingRuleProperties

java.lang.Object
  extended bycom.sap.mdm.matching.MatchingRuleProperties
All Implemented Interfaces:
Cloneable, NamedRepositoryItem, RepositoryItem

public class MatchingRuleProperties
extends Object
implements NamedRepositoryItem

This class defines a matching rule. A matching rule defines the matching function to be applied to a field or field combination and assigns a score based on whether the matching function succeeds, fails, or is undefined because of null values.


Constructor Summary
MatchingRuleProperties(MatchingRuleId ruleId)
          Constructor with the specified matching rule Id.
MatchingRuleProperties(MatchingRuleId ruleId, String code, MultilingualString name, String description, int successScore, int failureScore, int defaultScore)
          Constructor with the specified parameter values.
 
Method Summary
 boolean equals(Object obj)
           
 String getCode()
          Returns a string identifier for a named repository object.
 int getDefaultScore()
          Returns the default score.
 String getDescription()
          Returns the matching rule description.
 int getFailureScore()
          Returns the failure score.
 MatchingRuleId getId()
          Returns the matching rule Id.
 MultilingualString getName()
          Returns the matching rule name.
 int getSuccessScore()
          Returns the success score.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatchingRuleProperties

public MatchingRuleProperties(MatchingRuleId ruleId)
Constructor with the specified matching rule Id.

Parameters:
ruleId - a matching rule Id

MatchingRuleProperties

public MatchingRuleProperties(MatchingRuleId ruleId,
                              String code,
                              MultilingualString name,
                              String description,
                              int successScore,
                              int failureScore,
                              int defaultScore)
Constructor with the specified parameter values.

Parameters:
ruleId - a matching rule Id
code - a matching rule code
name - a matching rule name
description - a matching rule description
successScore - a success score
failureScore - a failure score
defaultScore - a default score
Method Detail

getCode

public String getCode()
Description copied from interface: NamedRepositoryItem
Returns a string identifier for a named repository object.

Specified by:
getCode in interface NamedRepositoryItem
Returns:
the code name

getId

public MatchingRuleId getId()
Returns the matching rule Id.

Returns:
a matching rule Id

getName

public MultilingualString getName()
Returns the matching rule name.

Returns:
a matching rule name

getDefaultScore

public int getDefaultScore()
Returns the default score. The field value is null.

Returns:
the default score

getDescription

public String getDescription()
Returns the matching rule description.

Returns:
a matching rule description

getFailureScore

public int getFailureScore()
Returns the failure score. The field value didn't match.

Returns:
a failure score

getSuccessScore

public int getSuccessScore()
Returns the success score. The field value matches.

Returns:
the success score

hashCode

public int hashCode()

equals

public boolean equals(Object obj)

toString

public String toString()


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.