}
}
- /**
- * {@inheritDoc}
- */
@Override
public String getValue(String attribute) throws ConfigurationException {
if (!pluginStore.strings.containsKey(attribute)) {
return pluginStore.strings.get(attribute);
}
- /**
- * {@inheritDoc}
- */
@Override
public void putValue(String attribute, String value) throws ConfigurationException {
pluginStore.strings.put(attribute, value);
save();
}
- /**
- * {@inheritDoc}
- */
@Override
public Boolean getBooleanValue(String attribute) throws ConfigurationException {
if (!pluginStore.booleans.containsKey(attribute)) {
return pluginStore.booleans.get(attribute);
}
- /**
- * {@inheritDoc}
- */
@Override
public void setBooleanValue(String attribute, Boolean value) throws ConfigurationException {
pluginStore.booleans.put(attribute, value);
save();
}
- /**
- * {@inheritDoc}
- */
@Override
public Double getDoubleValue(String attribute) throws ConfigurationException {
if (!pluginStore.strings.containsKey(attribute)) {
}
}
- /**
- * {@inheritDoc}
- */
@Override
public void setDoubleValue(String attribute, Double value) throws ConfigurationException {
pluginStore.strings.put(attribute, String.valueOf(value));
save();
}
- /**
- * {@inheritDoc}
- */
@Override
public Integer getIntegerValue(String attribute) throws ConfigurationException {
if (!pluginStore.integers.containsKey(attribute)) {
return pluginStore.integers.get(attribute);
}
- /**
- * {@inheritDoc}
- */
@Override
public void setIntegerValue(String attribute, Integer value) throws ConfigurationException {
pluginStore.integers.put(attribute, value);
save();
}
- /**
- * {@inheritDoc}
- */
@Override
public Long getLongValue(String attribute) throws ConfigurationException {
if (!pluginStore.longs.containsKey(attribute)) {
return pluginStore.longs.get(attribute);
}
- /**
- * {@inheritDoc}
- */
@Override
public void setLongValue(String attribute, Long value) throws ConfigurationException {
pluginStore.longs.put(attribute, value);
save();
}
- /**
- * {@inheritDoc}
- */
@Override
public void save() throws ConfigurationException {
try {