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.0.0
Author:
The Digital Product Meta Library

Method Summary
 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

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