net.sf.oval
Class Validator.DelegatingParameterNameResolver

java.lang.Object
  extended by net.sf.oval.Validator.DelegatingParameterNameResolver
All Implemented Interfaces:
ParameterNameResolver
Enclosing class:
Validator

protected static final class Validator.DelegatingParameterNameResolver
extends Object
implements ParameterNameResolver


Constructor Summary
Validator.DelegatingParameterNameResolver(ParameterNameResolver delegate)
           
 
Method Summary
 ParameterNameResolver getDelegate()
           
 String[] getParameterNames(Constructor<?> constructor)
          Returns an empty String array if no parameters are declared.
 String[] getParameterNames(Method method)
          Returns an empty String array if no parameters are declared
 void setDelegate(ParameterNameResolver delegate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validator.DelegatingParameterNameResolver

public Validator.DelegatingParameterNameResolver(ParameterNameResolver delegate)
Method Detail

getDelegate

public ParameterNameResolver getDelegate()

getParameterNames

public String[] getParameterNames(Constructor<?> constructor)
                           throws ReflectionException
Description copied from interface: ParameterNameResolver
Returns an empty String array if no parameters are declared.

Specified by:
getParameterNames in interface ParameterNameResolver
Parameters:
constructor - the constructor
Returns:
an array holding the parameter names of the given constructor.
Throws:
ReflectionException - in case retrieving the parameter names fails

getParameterNames

public String[] getParameterNames(Method method)
                           throws ReflectionException
Description copied from interface: ParameterNameResolver
Returns an empty String array if no parameters are declared

Specified by:
getParameterNames in interface ParameterNameResolver
Parameters:
method - the method
Returns:
an array holding the parameter names of the given method.
Throws:
ReflectionException - in case retrieving the parameter names fails

setDelegate

public void setDelegate(ParameterNameResolver delegate)


Copyright © 2005–2015 The OVal Development Team. All rights reserved.