org.hibernate.validator.metadata
Class ParameterMetaData

java.lang.Object
  extended by org.hibernate.validator.metadata.ParameterMetaData
All Implemented Interfaces:
Iterable<MethodMetaConstraint<?>>

public class ParameterMetaData
extends Object
implements Iterable<MethodMetaConstraint<?>>

Contains constraint-related meta-data for one method parameter.

Author:
Gunnar Morling

Constructor Summary
ParameterMetaData(int index, Class<?> type, String name, List<MethodMetaConstraint<?>> constraints, boolean isCascading)
           
 
Method Summary
 int getIndex()
           
 String getParameterName()
           
 Class<?> getType()
           
 boolean isCascading()
           
 boolean isConstrained()
          Whether this parameter is constrained or not.
 Iterator<MethodMetaConstraint<?>> iterator()
           
 ParameterMetaData merge(ParameterMetaData otherMetaData)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParameterMetaData

public ParameterMetaData(int index,
                         Class<?> type,
                         String name,
                         List<MethodMetaConstraint<?>> constraints,
                         boolean isCascading)
Method Detail

getType

public Class<?> getType()

getIndex

public int getIndex()

getParameterName

public String getParameterName()

isCascading

public boolean isCascading()

isConstrained

public boolean isConstrained()
Whether this parameter is constrained or not. This is the case, if this parameter has at least one constraint or a cascaded validation shall be performed for it.

Returns:
True, if this parameter is constrained, false otherwise.

iterator

public Iterator<MethodMetaConstraint<?>> iterator()
Specified by:
iterator in interface Iterable<MethodMetaConstraint<?>>

merge

public ParameterMetaData merge(ParameterMetaData otherMetaData)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved