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

public class ValidationSchema extends Object implements Serializable
Represents validation rules to run against a BusinessTypeField. This is a POJO that stores the same data as is configured in metadata to validate fields.
See Also:
  • Constructor Details

    • ValidationSchema

      public ValidationSchema()
  • Method Details

    • getType

      public String getType()
      The type of validation, e.g., STRING, NUMBER, BOOLEAN, etc. See com.broadleafcommerce.metadata.dsl.core.utils.ValidationSchemas.Types.
    • getMethods

      public List<ValidationMethod> getMethods()
      The validation rules.
    • setType

      public void setType(String type)
      The type of validation, e.g., STRING, NUMBER, BOOLEAN, etc. See com.broadleafcommerce.metadata.dsl.core.utils.ValidationSchemas.Types.
    • setMethods

      public void setMethods(List<ValidationMethod> methods)
      The validation rules.
    • 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