net.dpml.library
Interface Dictionary

All Known Subinterfaces:
Module, Resource
All Known Implementing Classes:
DefaultDictionary, DefaultModule, DefaultResource

public interface Dictionary

The Dictonary interface exposes operations dealing with named properties.

Version:
1.1.0
Author:
Digital Product Meta Library

Method Summary
 boolean getBooleanProperty(String key, boolean value)
          Return an boolean property value.
 int getIntegerProperty(String key, int value)
          Return an integer property value.
 String[] getLocalPropertyNames()
          Return the local property names associated with the dictionary.
 String getProperty(String key)
          Return a property value.
 String getProperty(String key, String value)
          Return a property value.
 String[] getPropertyNames()
          Return the property names associated with the dictionary.
 String resolve(String value)
          Evaluate and expand any symbolic references in the supplied value.
 

Method Detail

getPropertyNames

public String[] getPropertyNames()
Return the property names associated with the dictionary.

Returns:
the array of property names

getLocalPropertyNames

public String[] getLocalPropertyNames()
Return the local property names associated with the dictionary.

Returns:
the array of local property names

getProperty

public String getProperty(String key)
Return a property value.

Parameters:
key - the property key
Returns:
the property value

getProperty

public String getProperty(String key,
                          String value)
Return a property value.

Parameters:
key - the property key
value - the default value
Returns:
the property value

getBooleanProperty

public boolean getBooleanProperty(String key,
                                  boolean value)
Return an boolean property value.

Parameters:
key - the property key
value - the default value
Returns:
the property value as an boolean

getIntegerProperty

public int getIntegerProperty(String key,
                              int value)
Return an integer property value.

Parameters:
key - the property key
value - the default value
Returns:
the property value as an integer

resolve

public String resolve(String value)
Evaluate and expand any symbolic references in the supplied value.

Parameters:
value - the value to resolve
Returns:
the resolved value