org.jboss.portal.registration.policies
Interface RegistrationPropertyValidator

All Known Implementing Classes:
DefaultRegistrationPropertyValidator

public interface RegistrationPropertyValidator

An interface providing an entry point for WSRP deployers to plug their registration property validation mechanism in DefaultRegistrationPolicy. Implementations of this interface MUST provide a no-argument constructor for instantiation from the class name.

Since:
2.6
Version:
$Revision: 8784 $
Author:
Chris Laprun

Method Summary
 void validateValueFor(javax.xml.namespace.QName propertyName, java.lang.Object value)
          Validates the given value for the registration property identified by the specified name.
 

Method Detail

validateValueFor

void validateValueFor(javax.xml.namespace.QName propertyName,
                      java.lang.Object value)
                      throws java.lang.IllegalArgumentException
Validates the given value for the registration property identified by the specified name. If the value is acceptable, the method simply returns. An invalid value will raise an exception.

Parameters:
propertyName - the qualified name for the property name
value - the value that needs to be validated
Throws:
java.lang.IllegalArgumentException - if the specified value is not acceptable for the specified property.