Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
ConfigurationSection.java
Go to the documentation of this file.
1 package org.bukkit.configuration;
2 
3 import java.util.Map;
4 import java.util.Set;
5 import java.util.List;
6 
7 import org.bukkit.Color;
8 import org.bukkit.OfflinePlayer;
9 import org.bukkit.util.Vector;
10 import org.bukkit.inventory.ItemStack;
11 
15 public interface ConfigurationSection {
29  public Set<String> getKeys(boolean deep);
30 
44  public Map<String, Object> getValues(boolean deep);
45 
56  public boolean contains(String path);
57 
68  public boolean isSet(String path);
69 
83  public String getCurrentPath();
84 
93  public String getName();
94 
105  public Configuration getRoot();
106 
119 
130  public Object get(String path);
131 
142  public Object get(String path, Object def);
143 
158  public void set(String path, Object value);
159 
169  public ConfigurationSection createSection(String path);
170 
181  public ConfigurationSection createSection(String path, Map<?, ?> map);
182 
183  // Primitives
194  public String getString(String path);
195 
206  public String getString(String path, String def);
207 
219  public boolean isString(String path);
220 
231  public int getInt(String path);
232 
243  public int getInt(String path, int def);
244 
256  public boolean isInt(String path);
257 
268  public boolean getBoolean(String path);
269 
280  public boolean getBoolean(String path, boolean def);
281 
293  public boolean isBoolean(String path);
294 
305  public double getDouble(String path);
306 
317  public double getDouble(String path, double def);
318 
330  public boolean isDouble(String path);
331 
342  public long getLong(String path);
343 
354  public long getLong(String path, long def);
355 
367  public boolean isLong(String path);
368 
369  // Java
380  public List<?> getList(String path);
381 
392  public List<?> getList(String path, List<?> def);
393 
405  public boolean isList(String path);
406 
420  public List<String> getStringList(String path);
421 
435  public List<Integer> getIntegerList(String path);
436 
450  public List<Boolean> getBooleanList(String path);
451 
465  public List<Double> getDoubleList(String path);
466 
480  public List<Float> getFloatList(String path);
481 
495  public List<Long> getLongList(String path);
496 
510  public List<Byte> getByteList(String path);
511 
525  public List<Character> getCharacterList(String path);
526 
540  public List<Short> getShortList(String path);
541 
555  public List<Map<?, ?>> getMapList(String path);
556 
557  // Bukkit
568  public Vector getVector(String path);
569 
580  public Vector getVector(String path, Vector def);
581 
593  public boolean isVector(String path);
594 
605  public OfflinePlayer getOfflinePlayer(String path);
606 
617  public OfflinePlayer getOfflinePlayer(String path, OfflinePlayer def);
618 
630  public boolean isOfflinePlayer(String path);
631 
642  public ItemStack getItemStack(String path);
643 
654  public ItemStack getItemStack(String path, ItemStack def);
655 
667  public boolean isItemStack(String path);
668 
679  public Color getColor(String path);
680 
691  public Color getColor(String path, Color def);
692 
704  public boolean isColor(String path);
705 
716  public ConfigurationSection getConfigurationSection(String path);
717 
729  public boolean isConfigurationSection(String path);
730 
741 
759  public void addDefault(String path, Object value);
760 }