org.eclipse.emf.mwe.core.issues
Class IssuesImpl

java.lang.Object
  extended by org.eclipse.emf.mwe.core.issues.IssuesImpl
All Implemented Interfaces:
Issues

public class IssuesImpl
extends java.lang.Object
implements Issues


Constructor Summary
IssuesImpl()
           
 
Method Summary
 void add(MWEDiagnostic issue)
          Adds a MWEDiagnostic.
 void addError(java.lang.String msg)
          Adds an error message.
 void addError(java.lang.String msg, java.lang.Object element)
          Adds an error message.
 void addError(WorkflowComponent ctx, java.lang.String msg)
          Adds an error message.
 void addError(WorkflowComponent compnent, java.lang.String msg, java.lang.Object obj)
          Adds an error message
 void addError(WorkflowComponent ctx, java.lang.String msg, java.lang.Object obj, java.lang.String feature, java.lang.Throwable t, java.util.List<java.lang.Object> additionalData)
          Adds an error message.
 void addError(WorkflowComponent ctx, java.lang.String msg, java.lang.Object element, java.lang.Throwable t, java.util.List<java.lang.Object> additionalData)
          Adds an error message.
 void addInfo(java.lang.String msg)
          Adds a info message.
 void addInfo(java.lang.String msg, java.lang.Object element)
          Adds a info message.
 void addInfo(WorkflowComponent ctx, java.lang.String msg)
          Adds a info message.
 void addInfo(WorkflowComponent compnent, java.lang.String msg, java.lang.Object obj)
          Adds an info message
 void addInfo(WorkflowComponent ctx, java.lang.String msg, java.lang.Object element, java.lang.String featureName, java.lang.Throwable t, java.util.List<java.lang.Object> additionalData)
           
 void addInfo(WorkflowComponent ctx, java.lang.String msg, java.lang.Object element, java.lang.Throwable t, java.util.List<java.lang.Object> additionalData)
          Adds a info message.
 void addWarning(java.lang.String msg)
          Adds a warn message.
 void addWarning(java.lang.String msg, java.lang.Object element)
          Adds a warn message.
 void addWarning(WorkflowComponent ctx, java.lang.String msg)
          Adds a warn message.
 void addWarning(WorkflowComponent compnent, java.lang.String msg, java.lang.Object obj)
          Adds an warn message
 void addWarning(WorkflowComponent ctx, java.lang.String msg, java.lang.Object element, java.lang.String feature, java.lang.Throwable t, java.util.List<java.lang.Object> additionalData)
           
 void addWarning(WorkflowComponent ctx, java.lang.String msg, java.lang.Object element, java.lang.Throwable t, java.util.List<java.lang.Object> additionalData)
          Adds a warn message.
 void clear()
          removes all warnings and errors
 MWEDiagnostic[] getErrors()
           
 MWEDiagnostic[] getInfos()
           
 MWEDiagnostic[] getIssues()
           
 MWEDiagnostic[] getWarnings()
           
 boolean hasErrors()
           
 boolean hasInfos()
           
 boolean hasWarnings()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IssuesImpl

public IssuesImpl()
Method Detail

add

public void add(MWEDiagnostic issue)
Description copied from interface: Issues
Adds a MWEDiagnostic. Only MWEDiagnostic with a severity of Diagnostic.INFO, Diagnostic.WARNING and Diagnostic.ERROR are allowed

Specified by:
add in interface Issues

addError

public void addError(WorkflowComponent ctx,
                     java.lang.String msg,
                     java.lang.Object obj,
                     java.lang.String feature,
                     java.lang.Throwable t,
                     java.util.List<java.lang.Object> additionalData)
Description copied from interface: Issues
Adds an error message.

Specified by:
addError in interface Issues

addError

public void addError(WorkflowComponent ctx,
                     java.lang.String msg,
                     java.lang.Object element,
                     java.lang.Throwable t,
                     java.util.List<java.lang.Object> additionalData)
Description copied from interface: Issues
Adds an error message.

Specified by:
addError in interface Issues
msg - Message text.

addError

public void addError(WorkflowComponent ctx,
                     java.lang.String msg)
Description copied from interface: Issues
Adds an error message.

Specified by:
addError in interface Issues
msg - Message text.

addError

public void addError(java.lang.String msg,
                     java.lang.Object element)
Description copied from interface: Issues
Adds an error message.

Specified by:
addError in interface Issues
Parameters:
msg - Message text.

addError

public void addError(java.lang.String msg)
Description copied from interface: Issues
Adds an error message.

Specified by:
addError in interface Issues
Parameters:
msg - Message text.

addError

public void addError(WorkflowComponent compnent,
                     java.lang.String msg,
                     java.lang.Object obj)
Description copied from interface: Issues
Adds an error message

Specified by:
addError in interface Issues

hasErrors

public boolean hasErrors()
Specified by:
hasErrors in interface Issues
Returns:

getErrors

public MWEDiagnostic[] getErrors()
Specified by:
getErrors in interface Issues
Returns:
all errors in this container

addWarning

public void addWarning(WorkflowComponent ctx,
                       java.lang.String msg)
Description copied from interface: Issues
Adds a warn message.

Specified by:
addWarning in interface Issues
msg - Message text.

addWarning

public void addWarning(java.lang.String msg,
                       java.lang.Object element)
Description copied from interface: Issues
Adds a warn message.

Specified by:
addWarning in interface Issues
Parameters:
msg - Message text.

addWarning

public void addWarning(WorkflowComponent ctx,
                       java.lang.String msg,
                       java.lang.Object element,
                       java.lang.Throwable t,
                       java.util.List<java.lang.Object> additionalData)
Description copied from interface: Issues
Adds a warn message.

Specified by:
addWarning in interface Issues
msg - Message text.

addWarning

public void addWarning(WorkflowComponent ctx,
                       java.lang.String msg,
                       java.lang.Object element,
                       java.lang.String feature,
                       java.lang.Throwable t,
                       java.util.List<java.lang.Object> additionalData)
Specified by:
addWarning in interface Issues

addWarning

public void addWarning(java.lang.String msg)
Description copied from interface: Issues
Adds a warn message.

Specified by:
addWarning in interface Issues
Parameters:
msg - Message text.

addWarning

public void addWarning(WorkflowComponent compnent,
                       java.lang.String msg,
                       java.lang.Object obj)
Description copied from interface: Issues
Adds an warn message

Specified by:
addWarning in interface Issues

getWarnings

public MWEDiagnostic[] getWarnings()
Specified by:
getWarnings in interface Issues
Returns:
all warning in this container

hasWarnings

public boolean hasWarnings()
Specified by:
hasWarnings in interface Issues
Returns:

addInfo

public void addInfo(WorkflowComponent ctx,
                    java.lang.String msg)
Description copied from interface: Issues
Adds a info message.

Specified by:
addInfo in interface Issues
msg - Message text.

addInfo

public void addInfo(java.lang.String msg,
                    java.lang.Object element)
Description copied from interface: Issues
Adds a info message.

Specified by:
addInfo in interface Issues
Parameters:
msg - Message text.

addInfo

public void addInfo(WorkflowComponent ctx,
                    java.lang.String msg,
                    java.lang.Object element,
                    java.lang.Throwable t,
                    java.util.List<java.lang.Object> additionalData)
Description copied from interface: Issues
Adds a info message.

Specified by:
addInfo in interface Issues
msg - Message text.

addInfo

public void addInfo(WorkflowComponent ctx,
                    java.lang.String msg,
                    java.lang.Object element,
                    java.lang.String featureName,
                    java.lang.Throwable t,
                    java.util.List<java.lang.Object> additionalData)
Specified by:
addInfo in interface Issues

addInfo

public void addInfo(WorkflowComponent compnent,
                    java.lang.String msg,
                    java.lang.Object obj)
Description copied from interface: Issues
Adds an info message

Specified by:
addInfo in interface Issues

addInfo

public void addInfo(java.lang.String msg)
Description copied from interface: Issues
Adds a info message.

Specified by:
addInfo in interface Issues
Parameters:
msg - Message text.

getInfos

public MWEDiagnostic[] getInfos()
Specified by:
getInfos in interface Issues
Returns:
all infos in this container

hasInfos

public boolean hasInfos()
Specified by:
hasInfos in interface Issues
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clear

public void clear()
Description copied from interface: Issues
removes all warnings and errors

Specified by:
clear in interface Issues

getIssues

public MWEDiagnostic[] getIssues()
Specified by:
getIssues in interface Issues
Returns:
all MWEDiagnostics reported here