Package net.sf.gridarta.model.errorview
Class ErrorViewCollector
- java.lang.Object
-
- net.sf.gridarta.model.errorview.ErrorViewCollector
-
public class ErrorViewCollector extends java.lang.ObjectConvenience class for adding messages to aErrorViewinstance using a fixed category name.
-
-
Constructor Summary
Constructors Constructor Description ErrorViewCollector(@NotNull ErrorView errorView, @NotNull java.io.File file)Creates a new instance.ErrorViewCollector(@NotNull ErrorView errorView, @NotNull java.net.URL url)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddError(@NotNull ErrorViewCategory category)Adds an error message.voidaddError(@NotNull ErrorViewCategory category, int lineNo, @NotNull java.lang.String message)Adds an error message.voidaddError(@NotNull ErrorViewCategory category, @NotNull java.lang.String message)Adds an error message.voidaddWarning(@NotNull ErrorViewCategory category)Adds a warning message.voidaddWarning(@NotNull ErrorViewCategory category, int lineNo, @NotNull java.lang.String message)Adds a warning message.voidaddWarning(@NotNull ErrorViewCategory category, @NotNull java.lang.String message)Adds a warning message.
-
-
-
Constructor Detail
-
ErrorViewCollector
public ErrorViewCollector(@NotNull @NotNull ErrorView errorView, @NotNull @NotNull java.io.File file)Creates a new instance.- Parameters:
errorView- the error view to add tofile- the file being read
-
ErrorViewCollector
public ErrorViewCollector(@NotNull @NotNull ErrorView errorView, @NotNull @NotNull java.net.URL url)Creates a new instance.- Parameters:
errorView- the error view to add tourl- the URL being read
-
-
Method Detail
-
addWarning
public void addWarning(@NotNull @NotNull ErrorViewCategory category)Adds a warning message.- Parameters:
category- the category
-
addWarning
public void addWarning(@NotNull @NotNull ErrorViewCategory category, @NotNull @NotNull java.lang.String message)Adds a warning message.- Parameters:
category- the categorymessage- the message
-
addWarning
public void addWarning(@NotNull @NotNull ErrorViewCategory category, int lineNo, @NotNull @NotNull java.lang.String message)Adds a warning message.- Parameters:
category- the categorylineNo- the line numbermessage- the message
-
addError
public void addError(@NotNull @NotNull ErrorViewCategory category)Adds an error message.- Parameters:
category- the category
-
addError
public void addError(@NotNull @NotNull ErrorViewCategory category, @NotNull @NotNull java.lang.String message)Adds an error message.- Parameters:
category- the categorymessage- the message
-
addError
public void addError(@NotNull @NotNull ErrorViewCategory category, int lineNo, @NotNull @NotNull java.lang.String message)Adds an error message.- Parameters:
category- the categorylineNo- the line numbermessage- the message
-
-