com.uwyn.rife.cmf.validation
Class SupportedImage

java.lang.Object
  extended by com.uwyn.rife.site.AbstractValidationRule
      extended by com.uwyn.rife.site.PropertyValidationRule
          extended by com.uwyn.rife.cmf.validation.CmfPropertyValidationRule
              extended by com.uwyn.rife.cmf.validation.SupportedImage
All Implemented Interfaces:
ValidationRule, Cloneable

public class SupportedImage
extends CmfPropertyValidationRule

A validation rule that checks if the data in a property is able to be loaded as a supported image format without errors.

Since:
1.0
Version:
$Revision: 3634 $
Author:
Geert Bevin (gbevin[remove] at uwyn dot com)

Constructor Summary
SupportedImage(String propertyName)
          Creates a new SupportedImage instance.
 
Method Summary
 ValidationError getError()
           
 boolean validate()
           
 
Methods inherited from class com.uwyn.rife.cmf.validation.CmfPropertyValidationRule
getFragment, setCachedLoadedData
 
Methods inherited from class com.uwyn.rife.site.PropertyValidationRule
getLoadingErrors, getPropertyName, getSubject, setLoadingErrors, setPropertyName, setSubject
 
Methods inherited from class com.uwyn.rife.site.AbstractValidationRule
clone, getBean, setBean
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SupportedImage

public SupportedImage(String propertyName)
Creates a new SupportedImage instance.

Parameters:
propertyName - the name of the property that has to be validated
Since:
1.0
Method Detail

validate

public boolean validate()
Specified by:
validate in interface ValidationRule
Specified by:
validate in class AbstractValidationRule

getError

public ValidationError getError()
Specified by:
getError in interface ValidationRule
Specified by:
getError in class AbstractValidationRule


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.