1 /* 2 * Copyright 2003-2010 the original author or authors. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 // note that this won't be properly consumed by mojo unless it's in the same package as the mojo 18 package org.codehaus.gmavenplus.model; 19 20 21 /** 22 * This class was taken from the Groovy project, so that GroovyDoc links can be 23 * added as mojo parameters without a compile dependency on Groovy. Represents a link pair (href, packages). 24 * The packages are comma separated. 25 */ 26 public class Link { 27 28 /** 29 * Link URL. 30 */ 31 private String href = ""; 32 33 /** 34 * Link packages. 35 */ 36 private String packages = ""; 37 38 /** 39 * Get the packages attribute. 40 * 41 * @return the packages attribute 42 */ 43 public String getPackages() { 44 return packages; 45 } 46 47 /** 48 * Set the packages attribute. 49 * 50 * @param newPackages the comma separated package prefixes corresponding to this link 51 */ 52 public void setPackages(final String newPackages) { 53 packages = newPackages; 54 } 55 56 /** 57 * Get the href attribute. 58 * 59 * @return the href attribute 60 */ 61 public String getHref() { 62 return href; 63 } 64 65 /** 66 * Set the href attribute. 67 * 68 * @param newHref a <code>String</code> value representing the URL to use for this link 69 */ 70 public void setHref(final String newHref) { 71 href = newHref; 72 } 73 74 }