java.lang.Object
com.broadleafcommerce.catalog.domain.product.type.validation.ValidationMethod
All Implemented Interfaces:
Serializable

public class ValidationMethod extends Object implements Serializable
Represents a validation rule for a ValidationSchema.
See Also:
  • Constructor Details

    • ValidationMethod

      public ValidationMethod()
  • Method Details

    • getName

      public String getName()
      Name of the method to use to validate a method. See com.broadleafcommerce.metadata.dsl.core.utils.ValidationMethods.
    • getMessage

      public String getMessage()
      An error message to dispaly if the BusinessTypeField fails validation.
    • getArgs

      public List<Object> getArgs()
      Arguments to pass into the validation method.
    • setName

      public void setName(String name)
      Name of the method to use to validate a method. See com.broadleafcommerce.metadata.dsl.core.utils.ValidationMethods.
    • setMessage

      public void setMessage(String message)
      An error message to dispaly if the BusinessTypeField fails validation.
    • setArgs

      public void setArgs(List<Object> args)
      Arguments to pass into the validation method.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object