templates.presentation
Class IssuesWrapper

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

public class IssuesWrapper
extends java.lang.Object

Processes the consistency issues produced by a Validator and wraps them into IssueDescriptors.

Author:
Lenko Grigorov

Nested Class Summary
protected static class IssuesWrapper.AssignFSAAction
          Action to assign an FSA model to a template component.
protected static class IssuesWrapper.ConvertAction
          Action to change the type (TemplateComponent.TYPE_MODULE or TemplateComponent.TYPE_CHANNEL) of a template component.
protected static class IssuesWrapper.RenameAction
          Action to relabel an entity.
protected static class IssuesWrapper.SetEventsAction
          Action to update the linking of events between the template components connected by a Connector.
 
Constructor Summary
IssuesWrapper()
           
 
Method Summary
protected static java.lang.String describe(Connector c)
           
protected static java.lang.String describe(Entity e)
           
static java.util.List<IssueDescriptor> getIssues(TemplateDiagram diagram)
          Assemble a list of IssueDescriptors for the consistency issues in a TemplateDiagram.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssuesWrapper

public IssuesWrapper()
Method Detail

getIssues

public static java.util.List<IssueDescriptor> getIssues(TemplateDiagram diagram)
Assemble a list of IssueDescriptors for the consistency issues in a TemplateDiagram.

Parameters:
diagram - the template diagram whose consistency issues should be assembled
Returns:
a list of IssueDescriptors for the consistency issues in the template diagram
See Also:
Validator

describe

protected static java.lang.String describe(Connector c)

describe

protected static java.lang.String describe(Entity e)