
io.ultreia.gc.lfn.GcLfnConfigOption Maven / Gradle / Ivy
package io.ultreia.gc.lfn;
/*-
* #%L
* GC toolkit :: LFN
* %%
* Copyright (C) 2017 Ultreia.io
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* .
* #L%
*/
import javax.annotation.Generated;
import org.nuiton.config.ConfigOptionDef;
@Generated(value = "org.nuiton.config.plugin.templates.ApplicationConfigTransformer", date = "Sat May 06 08:45:23 UTC 2017")
public enum GcLfnConfigOption implements ConfigOptionDef {
CONFIG_FILE(
java.lang.String.class,
"config.file",
"Configuration filename",
"gc.conf",
true,
false),
BUILD_DATE(
java.lang.String.class,
"gc.build.date",
"Build date",
null,
true,
false),
BUILD_NUMBER(
java.lang.String.class,
"gc.build.number",
"Build Number",
null,
true,
false),
BUILD_VERSION(
org.nuiton.version.Version.class,
"gc.build.version",
"Build Version",
null,
true,
false),
DATA_DIRECTORY(
java.io.File.class,
"gc.dataDirectory",
"Data directory",
"${user.home}/.gc",
false,
false),
LOGIN(
java.lang.String.class,
"gc.auth.login",
"Geocaching.com login",
null,
false,
false),
PASSWORD(
java.lang.String.class,
"gc.auth.password",
"Geocaching.com password",
null,
false,
false),
AUTO_LOGIN(
boolean.class,
"gc.auth.autoLogIn",
"Auto login at start up",
"false",
false,
false),
AUTO_VIST_TRACKABLES(
boolean.class,
"gc.lfn.autoVistTrackables",
"Auto visit trackables",
"true",
false,
false),
LOG_FILE(
java.io.File.class,
"gc.lfn.logFile",
"Path to log file",
"${gc.dataDirectory}/lfn.txt",
false,
false);
private final Class type;
private final String key;
private final String description;
private String defaultValue;
private boolean _transient;
private boolean _final;
GcLfnConfigOption(Class type, String key, String description, String defaultValue, boolean _transient, boolean _final) {
this.type = type;
this.key = key;
this.description = description;
this.defaultValue = defaultValue;
this._final = _final;
this._transient = _transient;
}
@Override
public String getKey() {
return key;
}
@Override
public Class getType() {
return type;
}
@Override
public String getDescription() {
return description;
}
@Override
public String getDefaultValue() {
return defaultValue;
}
@Override
public void setDefaultValue(String defaultValue) {
this.defaultValue = defaultValue;
}
@Override
public boolean isTransient() {
return _transient;
}
@Override
public void setTransient(boolean _transient) {
this._transient = _transient;
}
@Override
public boolean isFinal() {
return _final;
}
@Override
public void setFinal(boolean _final) {
this._final = _final;
}
} //GcLfnConfigOption
© 2015 - 2025 Weber Informatics LLC | Privacy Policy