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.core.export; 17 18 import de.smartics.testdoc.core.doc.UnitTestDoc; 19 20 /** 21 * Base implementation of the {@link ExportAdapter} interface. 22 * 23 * @author <a href="mailto:robert.reiner@smartics.de">Robert Reiner</a> 24 * @version $Revision:591 $ 25 */ 26 public abstract class AbstractExportAdapter implements ExportAdapter 27 { 28 // ********************************* Fields ********************************* 29 30 // --- constants ------------------------------------------------------------ 31 32 // --- members -------------------------------------------------------------- 33 34 // ****************************** Initializer ******************************* 35 36 // ****************************** Constructors ****************************** 37 38 /** 39 * Default constructor. 40 */ 41 protected AbstractExportAdapter() 42 { 43 } 44 45 // ****************************** Inner Classes ***************************** 46 47 // ********************************* Methods ******************************** 48 49 // --- init ----------------------------------------------------------------- 50 51 // --- get&set -------------------------------------------------------------- 52 53 // --- business ------------------------------------------------------------- 54 55 /** 56 * {@inheritDoc} 57 * 58 * @see de.smartics.testdoc.core.export.ExportAdapter#exportQuietly(de.smartics.testdoc.core.doc.UnitTestDoc) 59 */ 60 @Override 61 public boolean exportQuietly(final UnitTestDoc testDoc) 62 { 63 try 64 { 65 export(testDoc); 66 return true; 67 } 68 catch (final ExportException e) 69 { 70 return false; 71 } 72 } 73 74 // --- object basics -------------------------------------------------------- 75 76 }