Class RuleValidationKey

java.lang.Object
com.ptc.core.businessRules.validation.RuleValidationKey
All Implemented Interfaces:
ValidationKey, Serializable

public class RuleValidationKey extends Object implements ValidationKey
Validation key for the business rule.

Supported API: true

Extendable: false
See Also:
  • Constructor Details

    • RuleValidationKey

      public RuleValidationKey(BusinessRule rule)
      Create a validation key for a business rule.

      Supported API: true
      Parameters:
      rule -
  • Method Details

    • getProcessingMapValue

      public Object getProcessingMapValue(String key)
      Retrieves a value for the given key from the temporary store that can be used for storing pre-validation data.

      Supported API: true
      Parameters:
      key -
      Returns:
      value of key in map
    • addToProcessingMap

      public void addToProcessingMap(String key, Object value)
      A temporary store that can be used for storing pre-validation data. To support thread safe processing of RuleValidation implementations when the cardinality is set to "singleton".

      Supported API: true
      Parameters:
      key -
      value -
    • getRuleKey

      public String getRuleKey()


      Supported API: true
      Returns:
      the business rule key
    • getSelector

      public String getSelector()


      Supported API: true
      Returns:
      the business rule selector
    • getRuleConfig

      public Map<String,String> getRuleConfig()


      Supported API: true
      Returns:
      the business rule config
    • getLocalizedMessage

      public String getLocalizedMessage(Locale locale)
      Returns the rule name stored on the business rule.

      Supported API: true
      Parameters:
      locale - Locale used for localizing rule name.
      Returns:
      Business rule name, or rule key if name is null.