com.beust.jcommander.validators
Class NoValidator

java.lang.Object
  extended by com.beust.jcommander.validators.NoValidator
All Implemented Interfaces:
IParameterValidator

public class NoValidator
extends Object
implements IParameterValidator

This is the default value of the validateWith attribute.

Author:
Cedric Beust

Constructor Summary
NoValidator()
           
 
Method Summary
 void validate(String parameterName, String parameterValue)
          Validate the parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoValidator

public NoValidator()
Method Detail

validate

public void validate(String parameterName,
                     String parameterValue)
              throws ParameterException
Description copied from interface: IParameterValidator
Validate the parameter.

Specified by:
validate in interface IParameterValidator
Parameters:
parameterName - The name of the parameter (e.g. "-host").
parameterValue - The value of the parameter that we need to validate
Throws:
ParameterException - Thrown if the value of the parameter is invalid.


Copyright © 2012. All Rights Reserved.