net.dpml.library
Interface Dictionary

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

public interface Dictionary

The Dictonary interface exposes operations dealing with named properties.

Version:
1.1.2
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

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

Returns:
the array of property names

getLocalPropertyNames

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

Returns:
the array of local property names

getProperty

String getProperty(String key)
Return a property value.

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

getProperty

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

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

getBooleanProperty

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

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

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

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