org.hibernate.validator.internal.metadata.raw
Class ConstrainedParameter
java.lang.Object
org.hibernate.validator.internal.metadata.raw.AbstractConstrainedElement
org.hibernate.validator.internal.metadata.raw.ConstrainedParameter
- All Implemented Interfaces:
- java.lang.Iterable<MetaConstraint<?>>, ConstrainedElement
public class ConstrainedParameter
- extends AbstractConstrainedElement
Contains constraint-related meta-data for one method parameter.
- Author:
- Gunnar Morling
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ConstrainedParameter
public ConstrainedParameter(ConfigurationSource source,
MethodConstraintLocation location,
java.lang.String name,
java.util.Set<MetaConstraint<?>> constraints,
boolean isCascading)
- Creates a new parameter meta data object.
- Parameters:
source - The source of meta data.location - The location of the represented method parameter.name - The name of the represented parameter.constraints - The constraints of the represented method parameter, if
any.isCascading - Whether a cascaded validation of the represented method
parameter shall be performed or not.
getLocation
public MethodConstraintLocation getLocation()
- Description copied from interface:
ConstrainedElement
- Returns the location of this constrained element.
- Specified by:
getLocation in interface ConstrainedElement- Overrides:
getLocation in class AbstractConstrainedElement
- Returns:
- The location of this constrained element.
getParameterName
public java.lang.String getParameterName()
toString
public java.lang.String toString()
- Overrides:
toString in class AbstractConstrainedElement
Copyright © 2012 Oracle Corporation. All Rights Reserved.