Class Constraint
java.lang.Object
org.springframework.restdocs.constraints.Constraint
A constraint.
- Author:
- Andy Wilkinson
-
Constructor Summary
ConstructorDescriptionConstraint
(String name, Map<String, Object> configuration) Creates a newConstraint
with the givenname
andconfiguration
. -
Method Summary
-
Constructor Details
-
Constraint
Creates a newConstraint
with the givenname
andconfiguration
.- 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
-