java.lang.Object
com.hybris.backoffice.workflow.designer.handler.connection.validator.Violation

public class Violation extends Object
Contains information about violations discovered by the validator
  • Method Details

    • create

      public static Violation create(String code, Object... params)
      Creates violation which will be shown to the user and also is used to prevent connection from creation.
      Parameters:
      code - unique code of the violation
      params - optional parameters of the violation, containing for example offensive nodes
      Returns:
      violation object
    • getCode

      public String getCode()
    • getParams

      public Collection<Object> getParams()
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object