ru.tehkode.permissions.config
Class Configuration

java.lang.Object
  extended by org.bukkit.util.config.ConfigurationNode
      extended by ru.tehkode.permissions.config.ConfigurationNode
          extended by ru.tehkode.permissions.config.Configuration

public class Configuration
extends ConfigurationNode

Author:
code

Nested Class Summary
protected  class Configuration.ConfigurationRepresenter
           
 
Field Summary
protected  File file
           
protected  org.yaml.snakeyaml.Yaml yaml
           
 
Fields inherited from class ru.tehkode.permissions.config.ConfigurationNode
escapedSplit
 
Fields inherited from class org.bukkit.util.config.ConfigurationNode
root
 
Constructor Summary
Configuration(File file)
           
 
Method Summary
static ConfigurationNode getEmptyNode()
          This method returns an empty ConfigurationNode for using as a default in methods that select a node from a node list.
 void load()
          Loads the configuration file.
 boolean save()
          Saves the configuration to disk.
 
Methods inherited from class ru.tehkode.permissions.config.ConfigurationNode
getNode, getNodesList, getNodesMap, getProperty, getRoot, removeProperty, setProperty, splitPath
 
Methods inherited from class org.bukkit.util.config.ConfigurationNode
getAll, getBoolean, getBooleanList, getDouble, getDoubleList, getInt, getIntList, getKeys, getKeys, getList, getNodeList, getNodes, getString, getString, getStringList, recursiveBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

yaml

protected org.yaml.snakeyaml.Yaml yaml

file

protected File file
Constructor Detail

Configuration

public Configuration(File file)
Method Detail

load

public void load()
Loads the configuration file. All errors are thrown away.


save

public boolean save()
Saves the configuration to disk. All errors are clobbered.

Returns:
true if it was successful saved

getEmptyNode

public static ConfigurationNode getEmptyNode()
This method returns an empty ConfigurationNode for using as a default in methods that select a node from a node list.

Returns:
empty ConfigurationNode


Copyright © 2011. All Rights Reserved.