java.lang.Object
ru.cg.webbpm.studio.subsystems.script_editor.validation.impl.NotNullValidator
All Implemented Interfaces:
PropertyValidator

@Component public class NotNullValidator extends Object implements PropertyValidator
Author:
Abdulin Ildar
  • Constructor Details

  • Method Details

    • accept

      public boolean accept(PropertyValue propertyValue, PropertyType<?> propertyType, PropertyContext propertyContext)
      Specified by:
      accept in interface PropertyValidator
      Parameters:
      propertyValue - property to check
      propertyType - property type
      propertyContext - context of the property (e.g script or complex property)
      Returns:
      true if validator accepts given property TODO it's possible to depend on metadata and type here
    • validate

      public Set<String> validate(PropertyValue propertyValue, Object scriptContext, PropertyContext propertyContext)
      Description copied from interface: PropertyValidator
      Check if property is valid
      Specified by:
      validate in interface PropertyValidator
      Parameters:
      propertyValue - property to validate
      scriptContext - context of the script which property belongs to (e.g. page object or BPMN process)
      propertyContext - context of the property which property belongs to (e.g. Script or PropertyValue)
      Returns:
      Violation messages. If there are no violations returns empty set.