Clearspace API (2.5.29) Core Javadocs

com.jivesoftware.community
Interface DocumentFieldValidator


public interface DocumentFieldValidator

Document field validators validate a document field value as entered or selected by the end user.


Method Summary
 String validate(String value, User user)
          Performs field validation on user supplied input.
 

Method Detail

validate

String validate(String value,
                User user)
Performs field validation on user supplied input. Returns null if validation succeeds or an error string if validation fails.

Parameters:
value - the user supplied value. If no value has been provided by the user then the value should be null.
user - the user supplying the value, or null if anonymous.
Returns:
null if validation succeeds or an error string if validation fails.

Clearspace Project Page

Copyright © 1999-2007 Jive Software.