public abstract class AbstractErrorReportBuilder extends Object
| Constructor and Description |
|---|
AbstractErrorReportBuilder(String name,
String filename,
String[] categories,
MultiCollection entries,
Map externals)
Build the error based on the given entries (if any).
|
| Modifier and Type | Method and Description |
|---|---|
IErrorReport |
buildErrorReport()
Build the error based on the given entries (if any).
|
abstract String |
getObjectName(Object obj)
Get the name of an object.
|
abstract Object |
getPathElementObject(Object element)
Get the object of a path element
|
abstract boolean |
isInCategory(Object obj,
String category)
Test if an object belongs to a category.
|
public AbstractErrorReportBuilder(String name, String filename, String[] categories, MultiCollection entries, Map externals)
name - The unqualified (model/file) name.filename - The file name with path (optional).categories - The element categories.entries - The parse errors (tuple(stack elements) -> {error messages}).externals - The external documents for links in html error reports, if any (id -> html text).public IErrorReport buildErrorReport()
public abstract Object getPathElementObject(Object element)
obj - An item (entry) of a tuple in the multi collection.public abstract boolean isInCategory(Object obj, String category)
obj - An item (entry) of a tuple in the multi collection.category - the category name.Copyright © 2012. All Rights Reserved.