com.netscape.certsrv.base
Interface IAttrSet

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
IAuthCredentials, ICertRecord, ICRLIssuingPointRecord, IDBObj, IEmailResolverKeys, IGroup, IRepositoryRecord, IRequestRecord, IUser
All Known Implementing Classes:
AuthCredentials, AuthCredentials, AuthCredentials, AuthzToken, MetaInfo, ProofOfArchival

public interface IAttrSet
extends java.io.Serializable

This interface defines the abstraction for the generic collection of attributes indexed by string names. Set of cooperating implementations of this interface may exploit dot-separated attribute names to provide seamless access to the attributes of attribute value which also implements AttrSet interface as if it was direct attribute of the container E.g., ((AttrSet)container.get("x")).get("y") is equivalent to container.get("x.y");

Version:
$Revision: 1211 $, $Date: 2010-08-18 10:15:37 -0700 (Wed, 18 Aug 2010) $

Method Summary
 void delete(java.lang.String name)
          Deletes an attribute value from this AttrSet.
 java.lang.Object get(java.lang.String name)
          Gets an attribute value.
 java.util.Enumeration getElements()
          Returns an enumeration of the names of the attributes existing within this AttrSet.
 void set(java.lang.String name, java.lang.Object obj)
          Sets an attribute value within this AttrSet.
 

Method Detail

set

void set(java.lang.String name,
         java.lang.Object obj)
         throws EBaseException
Sets an attribute value within this AttrSet.

Parameters:
name - the name of the attribute
obj - the attribute object.
Throws:
EBaseException - on attribute handling errors.

get

java.lang.Object get(java.lang.String name)
                     throws EBaseException
Gets an attribute value.

Parameters:
name - the name of the attribute to return.
Throws:
EBaseException - on attribute handling errors.

delete

void delete(java.lang.String name)
            throws EBaseException
Deletes an attribute value from this AttrSet.

Parameters:
name - the name of the attribute to delete.
Throws:
EBaseException - on attribute handling errors.

getElements

java.util.Enumeration getElements()
Returns an enumeration of the names of the attributes existing within this AttrSet.

Returns:
an enumeration of the attribute names.