Package aQute.service.reporter
Interface Reporter.SetLocation
-
- All Known Subinterfaces:
Messages.ERROR,Messages.WARNING
- All Known Implementing Classes:
Processor.SetLocationImpl,ReporterAdapter.LocationImpl,ReporterMessages.ERRORImpl,ReporterMessages.WARNINGImpl
- Enclosing interface:
- Reporter
public static interface Reporter.SetLocationFluid interface to set location data
-
-
Method Summary
All Methods Instance Methods Abstract 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 n)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
Reporter.SetLocation file(java.lang.String file)
Set the file location
-
header
Reporter.SetLocation header(java.lang.String header)
Set the header/section location. This is normally the header in a manifest or properties file.
-
context
Reporter.SetLocation context(java.lang.String context)
Set the context in the header.- Parameters:
context-
-
method
Reporter.SetLocation method(java.lang.String methodName)
Set the method where the error is reported.- Parameters:
methodName-
-
line
Reporter.SetLocation line(int n)
Set the line number. Line 0 is the top line.
-
reference
Reporter.SetLocation reference(java.lang.String reference)
Set a reference for the error (url or so)
-
details
Reporter.SetLocation details(java.lang.Object details)
Pass 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.
-
location
Report.Location location()
-
length
Reporter.SetLocation length(int length)
-
-