Module indiclient :: Class indielement
[show private | hide private]
[frames | no frames]

Class indielement

 indiobject --+    
              |    
indinamedobject --+
                  |
                 indielement

Known Subclasses:
indiblob, indilight, indinumber, indiswitch, inditext

The Base Class of any element of an INDI Vector
Method Summary
  __init__(self, attrs, tag)
StringType get_text(self)
Return a string representation of it value
StringType get_xml(self, transfertype)
Returns an XML representation of the object
NoneType set_float(self, num)
Return None
NoneType set_text(self, text)
Return None
NoneType tell(self)
Prints all parameters of the object
    Inherited from indiobject
BooleanType is_valid(self)
Checks whether the object is valid.
NoneType update(self, attrs, tag)
Update this element with data received form the XML Parser.

Instance Variable Summary
    Inherited from indinamedobject
StringType label: label of the INDI object as given in the "label" XML attribute
StringType name: name of the INDI object as given in the "name" XML attribute
    Inherited from indiobject
indixmltag tag: The XML tag of the INDI object (see indixmltag).

Method Details

__init__(self, attrs, tag)
(Constructor)

Parameters:
attrs - The attributes of the XML version of the INDI object.
           (type=DictType)
tag - The XML tag of the object (see indixmltag).
           (type=indixmltag)
Overrides:
indiclient.indinamedobject.__init__ (inherited documentation)

get_text(self)

Returns:
a string representation of it value
           (type=StringType)

get_xml(self, transfertype)

Returns an XML representation of the object
Parameters:
transfertype - The inditransfertype for which the XML code shall be generated
           (type={inditransfertype})
Returns:
an XML representation of the object
           (type=StringType)
Overrides:
indiclient.indiobject.get_xml (inherited documentation)

set_float(self, num)

Parameters:
num - The new value to be set.
           (type=FloatType)
Returns:
None
           (type=NoneType)

set_text(self, text)

Parameters:
text - A string representation of the data to be written into the object.
           (type=StringType)
Returns:
None
           (type=NoneType)

tell(self)

Prints all parameters of the object
Returns:
None
           (type=NoneType)

Generated by Epydoc 2.1 on Sat Sep 10 10:26:05 2005 http://epydoc.sf.net