com.sap.mdm.validation
Class ValidationProperties

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

public class ValidationProperties
extends Object
implements NamedRepositoryItem

This class represents a validation rule.


Nested Class Summary
 class ValidationProperties.ExecutionType
          This class contains a list of enumeration of the available execution type.
 
Constructor Summary
ValidationProperties(Id containerId, ValidationId validationId, GroupNodeId[] validationGroupIds, MultilingualString name, String code, MultilingualString description, MultilingualString message, int executionType, boolean isCallable)
          Constructs a ValidationProperties object with the specified parameters.
ValidationProperties(ValidationId validationId, GroupNodeId[] validationGroupIds, MultilingualString name, String code, MultilingualString description, MultilingualString message, int executionType, boolean isCallable)
          Constructs with the specified parameters.
 
Method Summary
 String getCode()
          Returns a string identifier for a named repository object.
 Id getContainerId()
          Returns the table Id or tuple definition Id to which the validation belongs.
 MultilingualString getDescription()
          Returns the validation description.
 int getExecutionType()
          Returns the execution type.
 ValidationId getId()
          Returns the validation Id.
 MultilingualString getMessage()
          Returns the error/warning message.
 MultilingualString getName()
          Returns the validation name.
 GroupNodeId[] getValidationGroupIds()
          Returns the groups the validation belongs to.
 boolean isCallable()
          Returns whether this validation can be included in another validation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationProperties

public ValidationProperties(ValidationId validationId,
                            GroupNodeId[] validationGroupIds,
                            MultilingualString name,
                            String code,
                            MultilingualString description,
                            MultilingualString message,
                            int executionType,
                            boolean isCallable)
Constructs with the specified parameters.

Parameters:
validationId - the validation Id
validationGroupIds - the groups the validation belongs to
name - the validation name
code - the validation code name
description - the validation description
message - the error/warning message for the validation
executionType - the execution type
isCallable - whether this validation can be included in another validation

ValidationProperties

public ValidationProperties(Id containerId,
                            ValidationId validationId,
                            GroupNodeId[] validationGroupIds,
                            MultilingualString name,
                            String code,
                            MultilingualString description,
                            MultilingualString message,
                            int executionType,
                            boolean isCallable)
Constructs a ValidationProperties object with the specified parameters.

Parameters:
containerId - the table or tuple definition to which the validation belongs
validationId - the validation Id
validationGroupIds - the groups to which the validation belongs
name - the validation name
code - the validation code
description - the validation description
message - the error/warning message for the validation
executionType - the execution type
isCallable - whether this validation can be included in another validation
Since:
7.1 SP08
Method Detail

getContainerId

public Id getContainerId()
Returns the table Id or tuple definition Id to which the validation belongs.

Returns:
The table Id or tuple definition Id
Since:
7.1 SP08
See Also:
TableId, TupleDefinitionId

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 ValidationId getId()
Returns the validation Id.

Returns:
the validation Id

getValidationGroupIds

public GroupNodeId[] getValidationGroupIds()
Returns the groups the validation belongs to.

Returns:
a validation group

isCallable

public boolean isCallable()
Returns whether this validation can be included in another validation.

Returns:
True if this validation can be included in another validation, otherwise false

getDescription

public MultilingualString getDescription()
Returns the validation description.

Returns:
the validation description

getMessage

public MultilingualString getMessage()
Returns the error/warning message.

Returns:
the error/warning message

getName

public MultilingualString getName()
Returns the validation name.

Returns:
the validation name

getExecutionType

public int getExecutionType()
Returns the execution type.

Returns:
the execution type
See Also:
ValidationProperties.ExecutionType


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.