ubc.cs.JLog.Foundation
Interface iAttributes


public interface iAttributes

An inteface to represent getting and setting attribute Key-Value pairs via Hashtables.

Version:
%I%, %G%
Author:
Glendon Holst

Method Summary
 Hashtable getAttributes()
          Returns a hashtable of every attribute associated with this object.
 void setAttributes(Hashtable attributes)
          Set the attributes of the object to those in the given Hashtable.
 

Method Detail

getAttributes

Hashtable getAttributes()
Returns a hashtable of every attribute associated with this object. Each attribute must have a String name key, and its associated value (non-null).

Returns:
The Hashtable of attribute name-value pairings.

setAttributes

void setAttributes(Hashtable attributes)
Set the attributes of the object to those in the given Hashtable. Errors such as Non-applicable attributes, or invalid values can be handled as the receiving object prefers (e.g., silently ignore, or throw exception).

Parameters:
attributes - The Hashtable of attribute name-value pairings.


Copyright © 2011. All Rights Reserved.