Class ValidationData

java.lang.Object
ch.tocco.nice2.rest.entitymodel.spi.validate.ValidationData

public class ValidationData extends Object
Data for a single validator. The data is sent to the client which should be able to validate some values using the data. For example, the returned data should contain the maximum length for strings if the validator is a length validator.
  • Constructor Details

    • ValidationData

      public ValidationData(String name, Object data)
  • Method Details

    • getName

      public String getName()
      Returns:
      the name of the validation.
    • getData

      public Object getData()
      Returns:
      the data the client needs to be able to validate values (for example a simple bean containing the meta data).