Package net.pterodactylus.util.config

Examples of net.pterodactylus.util.config.AttributeNotFoundException


   * {@inheritDoc}
   */
  @Override
  public String getValue(String attribute) throws ConfigurationException {
    if (!pluginStore.strings.containsKey(attribute)) {
      throw new AttributeNotFoundException(attribute);
    }
    return pluginStore.strings.get(attribute);
  }
View Full Code Here


   * {@inheritDoc}
   */
  @Override
  public Boolean getBooleanValue(String attribute) throws ConfigurationException {
    if (!pluginStore.booleans.containsKey(attribute)) {
      throw new AttributeNotFoundException(attribute);
    }
    return pluginStore.booleans.get(attribute);
  }
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  public Double getDoubleValue(String attribute) throws ConfigurationException {
    if (!pluginStore.strings.containsKey(attribute)) {
      throw new AttributeNotFoundException(attribute);
    }
    String stringValue = pluginStore.strings.get(attribute);
    if (stringValue == null) {
      return null;
    }
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  public Integer getIntegerValue(String attribute) throws ConfigurationException {
    if (!pluginStore.integers.containsKey(attribute)) {
      throw new AttributeNotFoundException(attribute);
    }
    return pluginStore.integers.get(attribute);
  }
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  public Long getLongValue(String attribute) throws ConfigurationException {
    if (!pluginStore.longs.containsKey(attribute)) {
      throw new AttributeNotFoundException(attribute);
    }
    return pluginStore.longs.get(attribute);
  }
View Full Code Here

TOP

Related Classes of net.pterodactylus.util.config.AttributeNotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.