org.apache.commons.cli
Class TypeHandlerValidator

java.lang.Object
  extended byorg.apache.commons.cli.TypeHandlerValidator
All Implemented Interfaces:
org.apache.commons.cli2.validation.Validator

class TypeHandlerValidator
extends java.lang.Object
implements org.apache.commons.cli2.validation.Validator


Field Summary
private  java.lang.Object type
           
 
Constructor Summary
TypeHandlerValidator(java.lang.Object type)
          Creates a new Validator using the TypeHandler class.
 
Method Summary
 void validate(java.util.List values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

private final java.lang.Object type
Constructor Detail

TypeHandlerValidator

public TypeHandlerValidator(java.lang.Object type)
Creates a new Validator using the TypeHandler class.

Parameters:
type - The required type for valid elements
See Also:
TypeHandler
Method Detail

validate

public void validate(java.util.List values)
              throws org.apache.commons.cli2.validation.InvalidArgumentException
Specified by:
validate in interface org.apache.commons.cli2.validation.Validator
Throws:
org.apache.commons.cli2.validation.InvalidArgumentException