1 /* 2 * Copyright 2010-2013 smartics, Kronseder & Reiner GmbH 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 package de.smartics.testdoc.maven.export.sink; 17 18 import org.apache.maven.doxia.sink.Sink; 19 20 import de.smartics.maven.util.report.MessageHelper; 21 import de.smartics.testdoc.core.doc.TestMethodDoc; 22 import de.smartics.testdoc.core.doc.Type; 23 24 /** 25 * Helper to render links to other reports. 26 * 27 * @author <a href="mailto:robert.reiner@smartics.de">Robert Reiner</a> 28 * @version $Revision:591 $ 29 */ 30 class UutLinkRenderer extends AbstractLinkRenderer 31 { 32 // ********************************* Fields ********************************* 33 34 // --- constants ------------------------------------------------------------ 35 36 // --- members -------------------------------------------------------------- 37 38 /** 39 * The type to link to. 40 */ 41 private final Type type; 42 43 // ****************************** Initializer ******************************* 44 45 // ****************************** Constructors ****************************** 46 47 /** 48 * Default constructor. 49 * 50 * @param sink the sink to write to. 51 * @param messages the resource bundles with messages to display as labels in 52 * the generated report. 53 * @param type the type to link to. 54 * @see de.smartics.testdoc.maven.export.sink.AbstractLinkRenderer#AbstractLinkRenderer(org.apache.maven.doxia.sink.Sink, 55 * de.smartics.maven.util.report.MessageHelper) 56 */ 57 UutLinkRenderer(final Sink sink, final MessageHelper messages, final Type type) 58 { 59 super(sink, messages); 60 this.type = type; 61 } 62 63 // ****************************** Inner Classes ***************************** 64 65 // ********************************* Methods ******************************** 66 67 // --- init ----------------------------------------------------------------- 68 69 // --- get&set -------------------------------------------------------------- 70 71 // --- business ------------------------------------------------------------- 72 73 Type getType() 74 { 75 return type; 76 } 77 78 TestMethodDoc getTestMethod() 79 { 80 return null; 81 } 82 83 // --- object basics -------------------------------------------------------- 84 85 }