Module rlsClient :: Class RlsAttr
[show private | hide private]
[frames | no frames]

Type RlsAttr

            object --+    
                     |    
globus_rls_attribute_t --+
                         |
                        RlsAttr


A class to wrap the RLS globus_rls_attribute_t structure. This class should be subclassed to construct individual types and instances of attributes.
Method Summary
instance of RlsAttr __init__(self)
Construct an instance.
string __str__(self)
Formats instances for pretty printing.
string get_name(self)
Get the name of an attribute instance.
integer get_objtype(self)
Get the object type of an attribute instance.
integer get_type(self)
Get the type of an attribute instance.
The type depends on the attribute value type. get_val(self)
Get the value of an attribute instance.
None set_name(self, name)
Set the name for an attribute.
None set_objtype(self, objtype)
Set the object type for an attribute.
None set_type(self, type)
Set the value type for an attribute.
None set_val(self, val)
Set the value for an attribute.
    Inherited from globus_rls_attribute_t
  __del__(self, destroy)
  __getattr__(self, name)
  __repr__(self)
  __setattr__(self, name, value)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle

Property Summary
    Inherited from globus_rls_attribute_t
  name
  objtype
  type
  val

Class Variable Summary
    Inherited from globus_rls_attribute_t
dict __swig_getmethods__ = {'objtype': <built-in function glo...
dict __swig_setmethods__ = {'objtype': <built-in function glo...

Method Details

__init__(self)
(Constructor)

Construct an instance.
Returns:
An instance of class RlsAttr.
           (type=instance of RlsAttr)
Overrides:
rlsclientc.globus_rls_attribute_t.__init__

__str__(self)
(Informal representation operator)

Formats instances for pretty printing.
Returns:
A string suitable for printing.
           (type=string)
Overrides:
__builtin__.object.__str__

get_name(self)

Get the name of an attribute instance.
Returns:
String representing the name of the attribute.
           (type=string)

get_objtype(self)

Get the object type of an attribute instance.
Returns:
Integer representing the object type of the attribute.
           (type=integer)

get_type(self)

Get the type of an attribute instance.
Returns:
Integer representing the type of the attribute value.
           (type=integer)

get_val(self)

Get the value of an attribute instance.
Returns:
Value.
           (type=The type depends on the attribute value type.)

set_name(self, name)

Set the name for an attribute.
Parameters:
name - used as name for attribute
           (type=string)
Returns:
None
           (type=None)
Raises:
RlsAttrException - raised if unable to set the name for the attribute.

set_objtype(self, objtype)

Set the object type for an attribute.
Parameters:
objtype - Object type of the object to which the attribute applies. Argument must be one of
  • obj_lrc_lfn
  • obj_lrc_pfn
  • obj_rli_lfn
  • obj_rli_lrc
Returns:
None
           (type=None)
Raises:
RlsAttrException - raised if unable to set the object type for the attribute.

set_type(self, type)

Set the value type for an attribute.
Parameters:
type - Type of the attribute value. Must be one of
  • attr_type_date
  • attr_type_flt
  • attr_type_int
  • attr_type_str
Returns:
None
           (type=None)
Raises:
RlsAttrException - raised if unable to set the type for the attribute.

set_val(self, val)

Set the value for an attribute. Also sets the type of the value
Parameters:
val - Value to which the attribute should be set
           (type=depends on attribute)
Returns:
None
           (type=None)
Raises:
RlsAttrException - raised if unable to set the val for the attribute.

Generated by Epydoc 2.1 on Wed Aug 24 09:10:41 2005 http://epydoc.sf.net