
org.faktorips.runtime.IModelObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of faktorips-runtime Show documentation
Show all versions of faktorips-runtime Show documentation
Runtime library for Faktor-IPS.
When using the JAXB support use either faktorips-runtime-jakarta-xml or faktorips-runtime-javax-xml as dependency.
When using CSV to read tables, add the optional dependencies to opencsv, commons-lang3 and commons-text.
If you want to run Faktor-IPS tests as JUnit tests, you need to provide either junit (JUnit 4) or junit-jupiter-api (JUnit 5).
/*******************************************************************************
* Copyright (c) Faktor Zehn AG.
*
* This source code is available under the terms of the AGPL Affero General Public License version
* 3.
*
* Please see LICENSE.txt for full license terms, including the additional permissions and
* restrictions as well as the possibility of alternative license terms.
*******************************************************************************/
package org.faktorips.runtime;
/**
* Base interface for all model objects.
*
* @author Jan Ortmann
*/
public interface IModelObject {
/**
* 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.
*
* @param 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
.
*/
public MessageList validate(IValidationContext context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy