1    /*
2     * Copyright 2009 :torweg free software group
3     *
4     * This program is free software: you can redistribute it and/or modify
5     * it under the terms of the GNU General Public License as published by
6     * the Free Software Foundation, either version 3 of the License, or
7     * (at your option) any later version.
8     * 
9     * This program is distributed in the hope that it will be useful,
10    * but WITHOUT ANY WARRANTY; without even the implied warranty of
11    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    * GNU General Public License for more details.
13    * 
14    * You should have received a copy of the GNU General Public License
15    * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16    *
17    */
18   package org.torweg.pulse.util.adminui;
19   
20   import javax.xml.bind.annotation.XmlAccessOrder;
21   import javax.xml.bind.annotation.XmlAccessType;
22   import javax.xml.bind.annotation.XmlAccessorOrder;
23   import javax.xml.bind.annotation.XmlAccessorType;
24   import javax.xml.bind.annotation.XmlElement;
25   import javax.xml.bind.annotation.XmlRootElement;
26   
27   import org.torweg.pulse.configuration.Configuration;
28   import org.torweg.pulse.configuration.XSLHandleConfiguration;
29   import org.torweg.pulse.util.xml.transform.XSLHandle;
30   
31   /**
32    * An abstract base-class to derive {@code Configuration}s from which
33    * provides a main-{@code XSLHandle}.
34    * 
35    * @author Daniel Dietz
36    * @version $Revision: 1406 $
37    */
38   @XmlRootElement(name = "abstract-base-configuration")
39   @XmlAccessorOrder(XmlAccessOrder.UNDEFINED)
40   @XmlAccessorType(XmlAccessType.FIELD)
41   public abstract class AbstractBaseConfiguration extends Configuration {
42   
43       /**
44        * The serialVersionUID.
45        */
46       private static final long serialVersionUID = 2316329587917858729L;
47   
48       /**
49        * The {@code XSLHandleConfiguration} to fetch the (main)
50        * {@code XSLHandle} for the initialisation of the main view.
51        */
52       @XmlElement(name = "ajax-main-XSL")
53       private XSLHandleConfiguration ajaxMainXSLHandle;
54   
55       /**
56        * Returns the (main) {@code XSLHandle} to fetch the (main)
57        * {@code XSLHandle} for the initialisation of the main view.
58        * 
59        * @return an {@code XSLHandle}
60        */
61       public final XSLHandle getMainXSLHandle() {
62           return this.ajaxMainXSLHandle.getXSLHandle();
63       }
64   
65   }
66