1 // note that this won't be properly consumed by mojo unless it's in the same package as the mojo
2 package org.codehaus.gmavenplus.model;
3
4
5 /**
6 * This class was taken from the Groovy project, so that GroovyDoc links can be
7 * added as mojo parameters without a compile dependency on Groovy. Represents a link pair (href, packages).
8 * The packages are comma separated.
9 */
10 public class Link {
11
12 /**
13 * Link URL.
14 */
15 private String href = "";
16
17 /**
18 * Link packages.
19 */
20 private String packages = "";
21
22 /**
23 * Get the packages attribute.
24 *
25 * @return the packages attribute
26 */
27 public String getPackages() {
28 return packages;
29 }
30
31 /**
32 * Set the packages attribute.
33 *
34 * @param newPackages the comma separated package prefixes corresponding to this link
35 */
36 public void setPackages(final String newPackages) {
37 packages = newPackages;
38 }
39
40 /**
41 * Get the href attribute.
42 *
43 * @return the href attribute
44 */
45 public String getHref() {
46 return href;
47 }
48
49 /**
50 * Set the href attribute.
51 *
52 * @param newHref a <code>String</code> value representing the URL to use for this link
53 */
54 public void setHref(final String newHref) {
55 href = newHref;
56 }
57
58 }