# com.bea.ide.core
PreferencesSvc.IPreferencePkg Interface

public static interface PreferencesSvc.IPreferencePkg

This interface exposes the preference values for a preference node. It adds support for looking up defaults via an `ResourceSvc.IResourcePkg```. If a value is not found in the preference node for the keys passed into the methods below, the IResourcePkg is given a chance to return a value for the key.

Enclosing class
  `PreferencesSvc`

## Method Summary

`public `String`` | `get`(`String` key) Return the string value of the key in the preference node.
`public boolean` | `getBoolean`(`String` key, boolean b) Return the boolean value of the key in the preference node.
`public boolean` | `getBoolean`(`String` key) Return the integer value of the key in the preference node.
`public `Color`` | `getColor`(`String` key) Gets the integer value of the key and converts it to a `Color```.
`public int` | `getInt`(`String` key) Return the integer value of the key in the preference node.
`public int` | `getInt`(`String` key, int i) Return the integer value of the key in the preference node.
`public `PreferencesSvc.IPreferencePkg`` | `getPackageForNode`(`String` name) Obtain a preference package for the child preference node described name.
`public void` | `put`(`String` key, `String` value) Stores the given string in the location specified by the key.
`public void` | `putBoolean`(`String` key, boolean b) Stores the given boolean in the location specified by the key.
`public void` | `putInt`(`String` key, int i) Stores the given integaer in the location specified by the key.
`public boolean` | `removeNode`(`String` name) Remove a specific child node from the preference node represented by this object.

## Method Detail

### get(String) Method

    public String get(String key)

Return the string value of the key in the preference node. If the key is not found, the default value will be returned if a default exists, otherwise null will be returned.

### getBoolean(String, boolean) Method

    public boolean getBoolean(String key,
                              boolean b)

Return the boolean value of the key in the preference node. If the key is not found, b will be returned.

### getBoolean(String) Method

    public boolean getBoolean(String key)

Return the integer value of the key in the preference node. If the key is not found, the default value will be returned if a default exists, otherwise false will be returned.

### getColor(String) Method

    public Color getColor(String key)

Gets the integer value of the key and converts it to a `Color```.

### getInt(String) Method

    public int getInt(String key)

Return the integer value of the key in the preference node. If the key is not found, the default value will be returned if a default exists, otherwise 0 will be returned.

### getInt(String, int) Method

    public int getInt(String key,
                      int i)

Return the integer value of the key in the preference node. If the key is not found, i will be returned.

### getPackageForNode(String) Method

    public PreferencesSvc.IPreferencePkg getPackageForNode(String name)

Obtain a preference package for the child preference node described name.

### put(String, String) Method

    public void put(String key,
                    String value)

Stores the given string in the location specified by the key.

### putBoolean(String, boolean) Method

    public void putBoolean(String key,
                           boolean b)

Stores the given boolean in the location specified by the key.

### putInt(String, int) Method

    public void putInt(String key,
                       int i)

Stores the given integaer in the location specified by the key.

### removeNode(String) Method

    public boolean removeNode(String name)

Remove a specific child node from the preference node represented by this object.