templates.presentation
Class IssueDescriptor

java.lang.Object
  extended by templates.presentation.IssueDescriptor

public class IssueDescriptor
extends java.lang.Object

Description of a template design consistency issue.

Author:
Lenko Grigorov

Field Summary
 java.util.Collection<DiagramElement> elements
          The set of diagram elements contributing to the occurrence of the consistency issue.
 java.util.List<javax.swing.Action> fixes
          A collection of actions which can fix the issue.
 java.lang.String message
          The human-readable description of the issue.
 int type
          The type of issue (error or warning)
static int TYPE_ERROR
          The indicator for an issue of type "error".
static int TYPE_WARNING
          The indicator for an issue of type "warning".
 
Constructor Summary
IssueDescriptor(java.lang.String message, int type, java.util.Collection<DiagramElement> elements, java.util.List<javax.swing.Action> fixes)
          Construct a new consistency issue descriptor for the given arguments.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_ERROR

public static final int TYPE_ERROR
The indicator for an issue of type "error".

See Also:
Constant Field Values

TYPE_WARNING

public static final int TYPE_WARNING
The indicator for an issue of type "warning".

See Also:
Constant Field Values

message

public java.lang.String message
The human-readable description of the issue.


type

public int type
The type of issue (error or warning)


fixes

public java.util.List<javax.swing.Action> fixes
A collection of actions which can fix the issue.


elements

public java.util.Collection<DiagramElement> elements
The set of diagram elements contributing to the occurrence of the consistency issue.

Constructor Detail

IssueDescriptor

public IssueDescriptor(java.lang.String message,
                       int type,
                       java.util.Collection<DiagramElement> elements,
                       java.util.List<javax.swing.Action> fixes)
Construct a new consistency issue descriptor for the given arguments.

Parameters:
message - the human-readable description of the issue
type - the type of issue (error or warning)
elements - collection of actions which can fix the issue
fixes - the set of diagram elements contributing to the occurrence of the issue