Manages access to the attribute set, and hides the underlying memory
management.
Methods
|
|
__del__
__getitem__
__init__
first
get_handle
get_name
get_values
more
next
|
|
__del__
|
__del__ ( self )
Destroys an instance.
It will destroy the attribute set, and free the underlying memory.
Raises:
A AttributeSetException is thrown if unable to destroy the attribute set. This
exception can't be caught, and should never happend. It's there mainly
for debugging if it does happen. :-)
|
|
__getitem__
|
__getitem__ ( self, index )
Limited sequence operator.
Allows normal python list iteration. Returns a 2-tuple. The first
element is the attribute name, and the second is a list of values.
|
|
__init__
|
__init__ ( self, handle )
Construct an instance.
This will construct an instance from a given handle. This
constructor. is for module use, and should not be called. Instead
calls like EntrySet.get_attributes() returns an attribute set instance.
Arguments
|
|
first
|
first ( self )
Set the current attribute to the first attribute in the set.
Raises
An AttributeSetException is thrown if unable to reset the current
attribute.
|
|
get_handle
|
get_handle ( self )
Return the underlying replica catalog attribute set handle.
XXX This handle is only valid as long as this object exists. When
the object is destroyed, the memory this handle points to is freed.
Returns:
A string containing the pointer.
|
|
get_name
|
get_name ( self )
Get the name of the current attribute in an attribute set.
Must be preceded by a call to first.
Retuns
A string is returned containing the name of the current
attribute.
Raises
An AttributeSetException is thrown if unable to get the name.
|
|
get_values
|
get_values ( self )
Get the values of the current attribute in an attribute set.
Must be preceded by a call to first.
Retuns
A list of strings is returned containing the values of the current
attribute.
Raises
An AttributeSetException is thrown if unable to get the values.
|
|
more
|
more ( self )
Whether there are more attributes in an attribute set, inclusive of the current attribute.
Must be preceded by a call to first.
Returns
Returns true if there are more attributes, and false if none.
Raises
An AttributeSetException is thrown if an error occurs.
|
|
next
|
next ( self )
Set the current attribute to the next attribute in the set.
Must be preceded by a call to first.
Raises
An AttributeSetException is thrown if unable to reset the current
attribute.
|