org.bukkit.configuration
Class MemoryConfigurationOptions

java.lang.Object
  extended by org.bukkit.configuration.ConfigurationOptions
      extended by org.bukkit.configuration.MemoryConfigurationOptions
Direct Known Subclasses:
FileConfigurationOptions

public class MemoryConfigurationOptions
extends ConfigurationOptions

Various settings for controlling the input and output of a MemoryConfiguration


Constructor Summary
protected MemoryConfigurationOptions(MemoryConfiguration configuration)
           
 
Method Summary
 MemoryConfiguration configuration()
          Returns the Configuration that this object is responsible for.
 MemoryConfigurationOptions copyDefaults(boolean value)
          Sets if the Configuration should copy values from its default Configuration directly.
 MemoryConfigurationOptions pathSeparator(char value)
          Sets the char that will be used to separate ConfigurationSections

This value does not affect how the Configuration is stored, only in how you access the data.

 
Methods inherited from class org.bukkit.configuration.ConfigurationOptions
copyDefaults, pathSeparator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryConfigurationOptions

protected MemoryConfigurationOptions(MemoryConfiguration configuration)
Method Detail

configuration

public MemoryConfiguration configuration()
Description copied from class: ConfigurationOptions
Returns the Configuration that this object is responsible for.

Overrides:
configuration in class ConfigurationOptions
Returns:
Parent configuration

copyDefaults

public MemoryConfigurationOptions copyDefaults(boolean value)
Description copied from class: ConfigurationOptions
Sets if the Configuration should copy values from its default Configuration directly.

If this is true, all values in the default Configuration will be directly copied, making it impossible to distinguish between values that were set and values that are provided by default. As a result, ConfigurationSection.contains(java.lang.String) will always return the same value as ConfigurationSection.isSet(java.lang.String). The default value is false.

Overrides:
copyDefaults in class ConfigurationOptions
Parameters:
value - Whether or not defaults are directly copied
Returns:
This object, for chaining

pathSeparator

public MemoryConfigurationOptions pathSeparator(char value)
Description copied from class: ConfigurationOptions
Sets the char that will be used to separate ConfigurationSections

This value does not affect how the Configuration is stored, only in how you access the data. The default value is '.'.

Overrides:
pathSeparator in class ConfigurationOptions
Parameters:
value - Path separator
Returns:
This object, for chaining


Copyright © 2013. All Rights Reserved.