Class Constraint
java.lang.Object
org.springframework.restdocs.constraints.Constraint
A constraint.
- Author:
- Andy Wilkinson
-
Constructor Summary
ConstructorsConstructorDescriptionConstraint(String name, Map<String, Object> configuration) Creates a newConstraintwith the givennameandconfiguration. -
Method Summary
-
Constructor Details
-
Constraint
Creates a newConstraintwith the givennameandconfiguration.- Parameters:
name- the nameconfiguration- the configuration
-
-
Method Details
-
getName
Returns the name of the constraint.- Returns:
- the name
-
getConfiguration
Returns the configuration of the constraint.- Returns:
- the configuration
-