public class DefaultModelValidator extends Object implements IModelValidator
Constructor and Description |
---|
DefaultModelValidator() |
Modifier and Type | Method and Description |
---|---|
protected String |
createViolationText(IConstraint con,
Violation violation)
Creates a text description of the violation of a constraint.
|
protected String |
createViolationText(IRelationship rel)
Creates a text description of the violation of a relationship.
|
List<IMessage> |
validate(IGanttChartModel model)
Validate the given model and produce a list of messages.
|
IMessage |
validate(IGanttChartModel model,
IConstraint con)
Validates the given single constraint and produce a message.
|
public List<IMessage> validate(IGanttChartModel model)
IModelValidator
validate
in interface IModelValidator
model
- the model to verifyAbstractGanttChart.addMessage(IMessage)
public IMessage validate(IGanttChartModel model, IConstraint con)
IModelValidator
validate
in interface IModelValidator
model
- the model to verifycon
- the constraint to verifyAbstractGanttChart.addMessage(IMessage)
protected String createViolationText(IRelationship rel)
rel
- the violated relationshipprotected String createViolationText(IConstraint con, Violation violation)
con
- the violated constraintviolation
- the violation that happenedCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.