Class ValueValidator

java.lang.Object
com.yworkflow.definition.model.value.ValueValidator

public class ValueValidator extends Object
Utility class for validating value objects used in the workflow system. ValueValidator provides common validation logic for ensuring that workflow identifiers and values meet the required constraints.

ValueValidator is used throughout the workflow system to validate string values that will be used as identifiers, ensuring they are not null or empty. This helps maintain data integrity and prevents runtime errors caused by invalid identifiers.

Since:
1.0
  • Constructor Details

    • ValueValidator

      public ValueValidator()
  • Method Details

    • validate

      public static void validate(String name, String value)
      Validates that a value is not null or empty.
      Parameters:
      name - the name of the value being validated (used in error messages)
      value - the value to validate
      Throws:
      IllegalArgumentException - if the value is null or empty