com.dlsc.flexgantt.model.scheduling

## Interface IModelValidator

- All Known Implementing Classes:
    DefaultModelValidator

      public interface IModelValidator

  A model validator is used to verify whether any relationships or constraints inside a given Gantt chart model have been violated. The result of the validation is a list of messages that can be added to the Gantt chart.
  Since:
    2.1
  Author:
    Dirk Lemmermann

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<IMessage>` | `validate(IGanttChartModel model)` Validate the given model and produce a list of messages.
    `IMessage` | `validate(IGanttChartModel model, IConstraint constraint)` Validates the given single constraint and produce a message.

- - ### Method Detail

    - #### validate

          List<IMessage> validate(IGanttChartModel model)

      Validate the given model and produce a list of messages.
      Parameters:
        `model` - the model to verify
      Returns:
        a list of messages that can be added to the Gantt chart
      Since:
        2.1
      See Also:
        `AbstractGanttChart.addMessage(IMessage)`

    - #### validate

          IMessage validate(IGanttChartModel model,
                            IConstraint constraint)

      Validates the given single constraint and produce a message.
      Parameters:
        `model` - the model to verify
        `constraint` - the constraint to verify
      Returns:
        a list of messages that can be added to the Gantt chart
      Since:
        2.1
      See Also:
        `AbstractGanttChart.addMessage(IMessage)`

Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.