blob: 042f3a4c73ec3b80d86f0c2b6542a48afffa5538 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/*******************************************************************************
* Copyright (c) 2009, 2021 Mountainminds GmbH & Co. KG and Contributors
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Marc R. Hoffmann - initial API and implementation
*
*******************************************************************************/
package org.jacoco.report.internal.html;
import org.jacoco.report.internal.ReportOutputFolder;
/**
* Abstraction for items that can be linked to in a report.
*/
public interface ILinkable {
/**
* Returns a relative link to the item that works from the given base
* folder.
*
* @param base
* folder where the link should be inserted
* @return relative link or <code>null</code> if the target does not exist
*/
String getLink(ReportOutputFolder base);
/**
* Returns the display label used for the link.
*
* @return display label
*/
String getLinkLabel();
/**
* Optional style class to be associated with the link.
*
* @return link style class or <code>null</code>
*/
String getLinkStyle();
}
|