| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| AbstractXmlConfigStrategy |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Created on 26-Set-2009 | |
| 3 | * Copyright (C) 2009 by Andrea Vacondio. | |
| 4 | * | |
| 5 | * This program is free software; you can redistribute it and/or modify it under the terms of the | |
| 6 | * GNU General Public License as published by the Free Software Foundation; | |
| 7 | * either version 2 of the License. | |
| 8 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; | |
| 9 | * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| 10 | * See the GNU General Public License for more details. | |
| 11 | * You should have received a copy of the GNU General Public License along with this program; | |
| 12 | * if not, write to the Free Software Foundation, Inc., | |
| 13 | * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 14 | */ | |
| 15 | package org.pdfsam.guiclient.configuration.services.xml.strategy; | |
| 16 | ||
| 17 | import org.dom4j.Document; | |
| 18 | ||
| 19 | /** | |
| 20 | * Abstract xml config strategy | |
| 21 | * @author Andrea Vacondio | |
| 22 | * | |
| 23 | */ | |
| 24 | public abstract class AbstractXmlConfigStrategy implements XmlConfigStrategy { | |
| 25 | ||
| 26 | private Document document; | |
| 27 | ||
| 28 | /** | |
| 29 | * @param document | |
| 30 | */ | |
| 31 | public AbstractXmlConfigStrategy(Document document) { | |
| 32 | 1043553 | super(); |
| 33 | 1043553 | this.document = document; |
| 34 | 1043553 | } |
| 35 | ||
| 36 | public Document getDocument() { | |
| 37 | 12522636 | return document; |
| 38 | } | |
| 39 | ||
| 40 | public void close() { | |
| 41 | 1043553 | document = null; |
| 42 | 1043553 | } |
| 43 | ||
| 44 | } |