public class ConstraintViolationMessage extends TimelineObjectPathMessage
TimelineObjectPathMessage
, which takes a
constraint and its violation as input.Constructor and Description |
---|
ConstraintViolationMessage(IConstraint constraint,
Violation violation,
IModelValidator modelValidator,
String text,
Object details,
TimelineObjectPath path)
Constructs a new constraint violation message.
|
ConstraintViolationMessage(IConstraint constraint,
Violation violation,
IModelValidator modelValidator,
String text,
TimelineObjectPath path)
Constructs a new constraint violation message.
|
ConstraintViolationMessage(IConstraint constraint,
Violation violation,
MessageTypeId id,
IModelValidator modelValidator,
String text,
Date time,
TimelineObjectPath path)
Constructs a new constraint violation message.
|
ConstraintViolationMessage(IConstraint constraint,
Violation violation,
MessageTypeId id,
IModelValidator modelValidator,
String text,
Object details,
Date time,
TimelineObjectPath path)
Constructs a new constraint violation message.
|
ConstraintViolationMessage(IConstraint constraint,
Violation violation,
MessageTypeId id,
IModelValidator modelValidator,
String text,
Object details,
TimelineObjectPath path)
Constructs a new constraint violation message.
|
ConstraintViolationMessage(IConstraint constraint,
Violation violation,
MessageTypeId id,
IModelValidator modelValidator,
String text,
TimelineObjectPath path)
Constructs a new constraint violation message.
|
Modifier and Type | Method and Description |
---|---|
IConstraint |
getConstraint()
Returns the violated constraint.
|
IModelValidator |
getModelValidator()
Returns the model validator that was used to create the message.
|
Violation |
getViolation()
Returns the violation.
|
getTimelineObjectPath
getMessageDetails, getMessageText, getMessageTime, getMessageTypeId, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMessageDetails, getMessageText, getMessageTime, getMessageTypeId
public ConstraintViolationMessage(IConstraint constraint, Violation violation, MessageTypeId id, IModelValidator modelValidator, String text, Date time, TimelineObjectPath path)
constraint
- the violated constraintviolation
- the violationid
- a message type identifier used to distinguish between plain
information messages or warning and error messagesmodelValidator
- the model validator used for creating this messagetext
- the message that will be shown to the usertime
- a message time stamppath
- a timeline object path to the tree node and the timeline
objectMessage
,
TimelineObjectPathMessage
public ConstraintViolationMessage(IConstraint constraint, Violation violation, MessageTypeId id, IModelValidator modelValidator, String text, Object details, Date time, TimelineObjectPath path)
constraint
- the violated constraintviolation
- the violationid
- a message type identifier used to distinguish between plain
information messages or warning and error messagesmodelValidator
- the model validator used for creating this messagetext
- the message that will be shown to the userdetails
- an object storing additional information about the cause of
the messagetime
- a message time stamppath
- a timeline object path to the tree node and the timeline
objectMessage
,
TimelineObjectPathMessage
public ConstraintViolationMessage(IConstraint constraint, Violation violation, MessageTypeId id, IModelValidator modelValidator, String text, Object details, TimelineObjectPath path)
constraint
- the violated constraintviolation
- the violationid
- a message type identifier used to distinguish between plain
information messages or warning and error messagesmodelValidator
- the model validator used for creating this messagetext
- the message that will be shown to the userdetails
- an object storing additional information about the cause of
the messagepath
- a timeline object path to the tree node and the timeline
objectMessage
,
TimelineObjectPathMessage
public ConstraintViolationMessage(IConstraint constraint, Violation violation, MessageTypeId id, IModelValidator modelValidator, String text, TimelineObjectPath path)
constraint
- the violated constraintviolation
- the violationid
- a message type identifier used to distinguish between plain
information messages or warning and error messagesmodelValidator
- the model validator used for creating this messagetext
- the message that will be shown to the userpath
- a timeline object path to the tree node and the timeline
objectMessage
,
TimelineObjectPathMessage
public ConstraintViolationMessage(IConstraint constraint, Violation violation, IModelValidator modelValidator, String text, Object details, TimelineObjectPath path)
constraint
- the violated constraintviolation
- the violationmodelValidator
- the model validator used for creating this messagetext
- the message that will be shown to the userdetails
- an object storing additional information about the cause of
the messagepath
- a timeline object path to the tree node and the timeline
objectMessage
,
TimelineObjectPathMessage
public ConstraintViolationMessage(IConstraint constraint, Violation violation, IModelValidator modelValidator, String text, TimelineObjectPath path)
constraint
- the violated constraintviolation
- the violationmodelValidator
- the model validator used for creating this messagetext
- the message that will be shown to the userpath
- a timeline object path to the tree node and the timeline
objectMessage
,
TimelineObjectPathMessage
public IConstraint getConstraint()
public Violation getViolation()
public IModelValidator getModelValidator()
Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.