Package aQute.libg.reporter
Class ReporterAdapter.LocationImpl
- java.lang.Object
-
- aQute.service.reporter.Report.Location
-
- aQute.libg.reporter.ReporterAdapter.LocationImpl
-
- All Implemented Interfaces:
Reporter.SetLocation
- Enclosing class:
- ReporterAdapter
static class ReporterAdapter.LocationImpl extends Report.Location implements Reporter.SetLocation
-
-
Field Summary
-
Fields inherited from class aQute.service.reporter.Report.Location
context, details, file, header, length, line, message, methodName, reference
-
-
Constructor Summary
Constructors Constructor Description LocationImpl(java.lang.String e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Reporter.SetLocationcontext(java.lang.String context)Set the context in the header.Reporter.SetLocationdetails(java.lang.Object details)Pass a DTO containing detailed information about the error.Reporter.SetLocationfile(java.lang.String file)Set the file locationReporter.SetLocationheader(java.lang.String header)Set the header/section location.Reporter.SetLocationlength(int length)Reporter.SetLocationline(int line)Set the line number.Report.Locationlocation()Reporter.SetLocationmethod(java.lang.String methodName)Set the method where the error is reported.Reporter.SetLocationreference(java.lang.String reference)Set a reference for the error (url or so)
-
-
-
Method Detail
-
file
public Reporter.SetLocation file(java.lang.String file)
Description copied from interface:Reporter.SetLocationSet the file location- Specified by:
filein interfaceReporter.SetLocation
-
header
public Reporter.SetLocation header(java.lang.String header)
Description copied from interface:Reporter.SetLocationSet the header/section location. This is normally the header in a manifest or properties file.- Specified by:
headerin interfaceReporter.SetLocation
-
context
public Reporter.SetLocation context(java.lang.String context)
Description copied from interface:Reporter.SetLocationSet the context in the header.- Specified by:
contextin interfaceReporter.SetLocation
-
method
public Reporter.SetLocation method(java.lang.String methodName)
Description copied from interface:Reporter.SetLocationSet the method where the error is reported.- Specified by:
methodin interfaceReporter.SetLocation
-
line
public Reporter.SetLocation line(int line)
Description copied from interface:Reporter.SetLocationSet the line number. Line 0 is the top line.- Specified by:
linein interfaceReporter.SetLocation
-
reference
public Reporter.SetLocation reference(java.lang.String reference)
Description copied from interface:Reporter.SetLocationSet a reference for the error (url or so)- Specified by:
referencein interfaceReporter.SetLocation
-
details
public Reporter.SetLocation details(java.lang.Object details)
Description copied from interface:Reporter.SetLocationPass a DTO containing detailed information about the error. This can be recognised by other tools (e.g. bndtools) and used for further error reporting/fixing.- Specified by:
detailsin interfaceReporter.SetLocation
-
location
public Report.Location location()
- Specified by:
locationin interfaceReporter.SetLocation
-
length
public Reporter.SetLocation length(int length)
- Specified by:
lengthin interfaceReporter.SetLocation
-
-