com.ldodds.foaf.thinlet.model
Interface Validatable

All Known Subinterfaces:
Model
All Known Implementing Classes:
FOAFObject

public interface Validatable

An object that can validate itself.

This code is Public Domain

Author:
ccslrd

Method Summary
 java.util.List getErrors()
          Asks the object for validation errors.
 boolean validate()
          Asks the object to validate itself.
 

Method Detail

validate

public boolean validate()
Asks the object to validate itself. No indication of validation errors are returned. These should be inspected with @see #getErrors.
Returns:
true is the object is valid.

getErrors

public java.util.List getErrors()
Asks the object for validation errors.
Returns:
null if there are no errors, otherwise a list of ValidationErrors