Class Constraint

java.lang.Object
org.springframework.restdocs.constraints.Constraint

public class Constraint extends Object
A constraint.
Author:
Andy Wilkinson
  • Constructor Details

    • Constraint

      public Constraint(String name, Map<String,Object> configuration)
      Creates a new Constraint with the given name and configuration.
      Parameters:
      name - the name
      configuration - the configuration
  • Method Details

    • getName

      public String getName()
      Returns the name of the constraint.
      Returns:
      the name
    • getConfiguration

      public Map<String,Object> getConfiguration()
      Returns the configuration of the constraint.
      Returns:
      the configuration