org.faktorips.runtime
Interface IModelObject

All Known Subinterfaces:
IConfigurableModelObject, ITimedConfigurableModelObject
All Known Implementing Classes:
AbstractModelObject

public interface IModelObject

Base interface for all model objects.

Author:
Jan Ortmann

Method Summary
 MessageList validate(IValidationContext context)
          Validates the model object and returns a list of messages.
 

Method Detail

validate

MessageList validate(IValidationContext context)
Validates the model object and returns a list of messages. If no message is generated the method returns an empty list. Note that also messages like warnings or informations can be returned for valid objects.

Parameters:
context - provides additional external information that might be necessary to execute the validation. E.g. the business context, the locale to provide locale specific message texts, user information. The parameter must not be null.
Throws:
NullPointerException - if context is null.


Copyright © 2015. All rights reserved.