aQute.service.reporter
Interface Reporter.SetLocation

All Known Subinterfaces:
Messages.ERROR, Messages.WARNING
Enclosing interface:
Reporter

public static interface Reporter.SetLocation

Fluid interface to set location data


Method Summary
 Reporter.SetLocation context(String context)
          Set the context in the header.
 Reporter.SetLocation details(Object details)
          Pass a DTO containing detailed information about the error.
 Reporter.SetLocation file(String file)
          Set the file location
 Reporter.SetLocation header(String header)
          Set the header/section location.
 Reporter.SetLocation length(int length)
           
 Reporter.SetLocation line(int n)
          Set the line number.
 Report.Location location()
           
 Reporter.SetLocation method(String methodName)
          Set the method where the error is reported.
 Reporter.SetLocation reference(String reference)
          Set a reference for the error (url or so)
 

Method Detail

file

Reporter.SetLocation file(String file)
Set the file location


header

Reporter.SetLocation header(String header)
Set the header/section location. This is normally the header in a manifest or properties file.


context

Reporter.SetLocation context(String context)
Set the context in the header.

Parameters:
context -
Returns:

method

Reporter.SetLocation method(String methodName)
Set the method where the error is reported.

Parameters:
context -
Returns:

line

Reporter.SetLocation line(int n)
Set the line number. Line 0 is the top line.


reference

Reporter.SetLocation reference(String reference)
Set a reference for the error (url or so)


details

Reporter.SetLocation details(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)


Copyright © 2014 aQute SARL. All rights reserved.