View Javadoc
1   /*
2    * #%L
3    * SUMARiS
4    * %%
5    * Copyright (C) 2019 SUMARiS Consortium
6    * %%
7    * This program is free software: you can redistribute it and/or modify
8    * it under the terms of the GNU General Public License as
9    * published by the Free Software Foundation, either version 3 of the
10   * License, or (at your option) any later version.
11   *
12   * This program is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   * GNU General Public License for more details.
16   *
17   * You should have received a copy of the GNU General Public
18   * License along with this program.  If not, see
19   * <http://www.gnu.org/licenses/gpl-3.0.html>.
20   * #L%
21   */
22  
23  package net.sumaris.rdf.config;
24  
25  import org.nuiton.config.ApplicationConfigProvider;
26  import org.nuiton.config.ConfigActionDef;
27  import org.nuiton.config.ConfigOptionDef;
28  
29  import java.util.Locale;
30  
31  import static org.nuiton.i18n.I18n.l;
32  
33  /**
34   * Config provider (for site generation).
35   * 
36   * @author Benoit Lavenier <benoit.lavenier@e-is.pro>
37   * @since 1.0
38   */
39  public class RdfConfigurationProvider implements ApplicationConfigProvider {
40  
41  	/** {@inheritDoc} */
42  	@Override
43  	public String getName() {
44  		return "sumaris-rdf";
45  	}
46  
47  	/** {@inheritDoc} */
48  	@Override
49  	public String getDescription(Locale locale) {
50  		return l(locale, "sumaris.rdf.config");
51  	}
52  
53  	/** {@inheritDoc} */
54  	@Override
55  	public ConfigOptionDef[] getOptions() {
56  		return RdfConfigurationOption.values();
57  	}
58  
59  	/** {@inheritDoc} */
60  	@Override
61  	public ConfigActionDef[] getActions() {
62  		return new ConfigActionDef[0];
63  	}
64  }