org.apache.tapestry.valid
Class ValidatorBinding

java.lang.Object
  extended by org.apache.tapestry.binding.AbstractBinding
      extended by org.apache.tapestry.valid.ValidatorBinding
All Implemented Interfaces:
org.apache.hivemind.Locatable, IBinding

public class ValidatorBinding
extends AbstractBinding

Implementation of IBinding that provides IValidator  instances based on a validator bean descriptor. The descriptor is of the form "type[,properties]". The types are values such as "string", "date" or "number" defined in the tapestry.valid.Validators configuration point. The properties are a properties initialization string.

Since:
4.0
Author:
Howard M. Lewis Ship
See Also:
PropertyUtils.configureProperties(java.lang.Object, java.lang.String)

Field Summary
 
Fields inherited from class org.apache.tapestry.binding.AbstractBinding
_description
 
Constructor Summary
ValidatorBinding(String description, ValueConverter valueConverter, org.apache.hivemind.Location location, IValidator validator)
           
 
Method Summary
 Object getObject()
          Returns the value of this binding.
 
Methods inherited from class org.apache.tapestry.binding.AbstractBinding
createReadOnlyBindingException, extendDescription, getComponent, getDescription, getLocation, getObject, getValueConverter, isInvariant, setObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidatorBinding

public ValidatorBinding(String description,
                        ValueConverter valueConverter,
                        org.apache.hivemind.Location location,
                        IValidator validator)
Method Detail

getObject

public Object getObject()
Description copied from interface: IBinding
Returns the value of this binding. This is the essential method.



Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.