View Javadoc
1   package fr.ifremer.dali.config;
2   
3   /*
4    * #%L
5    * Dali :: Core
6    * $Id:$
7    * $HeadURL:$
8    * %%
9    * Copyright (C) 2014 - 2015 Ifremer
10   * %%
11   * This program is free software: you can redistribute it and/or modify
12   * it under the terms of the GNU Affero General Public License as published by
13   * the Free Software Foundation, either version 3 of the License, or
14   * (at your option) any later version.
15   * 
16   * This program is distributed in the hope that it will be useful,
17   * but WITHOUT ANY WARRANTY; without even the implied warranty of
18   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19   * GNU General Public License for more details.
20   * 
21   * You should have received a copy of the GNU Affero General Public License
22   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
23   * #L%
24   */
25  
26  import org.nuiton.config.ConfigOptionDef;
27  
28  /**
29   * <p>DaliReadOnlyConfigurationOption class.</p>
30   *
31   * @author Ludovic Pecquot <ludovic.pecquot@e-is.pro>
32   */
33  public class DaliReadOnlyConfigurationOption implements ConfigOptionDef {
34  
35      private final ConfigOptionDef delegate;
36  
37      /**
38       * <p>Constructor for DaliReadOnlyConfigurationOption.</p>
39       *
40       * @param delegate a {@link org.nuiton.config.ConfigOptionDef} object.
41       */
42      public DaliReadOnlyConfigurationOption(ConfigOptionDef delegate) {
43          this.delegate = delegate;
44      }
45  
46      /** {@inheritDoc} */
47      @Override
48      public String getKey() {
49          return delegate.getKey();
50      }
51  
52      /** {@inheritDoc} */
53      @Override
54      public Class<?> getType() {
55          return delegate.getType();
56      }
57  
58      /** {@inheritDoc} */
59      @Override
60      public String getDescription() {
61          return delegate.getDescription();
62      }
63  
64      /** {@inheritDoc} */
65      @Override
66      public String getDefaultValue() {
67          return delegate.getDefaultValue();
68      }
69  
70      /** {@inheritDoc} */
71      @Override
72      public boolean isTransient() {
73          return delegate.isTransient();
74      }
75  
76      /** {@inheritDoc} */
77      @Override
78      public boolean isFinal() {
79          return true;
80      }
81  
82      /** {@inheritDoc} */
83      @Override
84      public void setDefaultValue(String defaultValue) {
85      }
86  
87      /** {@inheritDoc} */
88      @Override
89      public void setTransient(boolean isTransient) {
90      }
91  
92      /** {@inheritDoc} */
93      @Override
94      public void setFinal(boolean isFinal) {
95      }
96  
97  }