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

Class _indiobjectfactory

_indinameconventions --+
                       |
                      _indiobjectfactory


A Class to create indiobjects from their XML attributes
Method Summary
  __init__(self)
Constructor
indiobject create(self, tag, attrs)
Return an indiobject created according to the information given in tag and attrs
    Inherited from _indinameconventions
StringType _get_defelementtag(self, basename)
Return xml tag of an element that is send by the server when an IDDef* function is called on vector which contains the element (like defText).
StringType _get_defvectortag(self, basename)
Return xml tag of a vector that is send by the server when an IDDef* function is called(like defTextVector).
StringType _get_element_repr(self, basename)
Return printable representation of the type of the element .
StringType _get_message_tag(self)
Return xml tag of an INDI message.
StringType _get_newelementtag(self, basename)
Return xml tag of an element that is send by the client (like oneText).
StringType _get_newvectortag(self, basename)
Return xml tag of a vector that is send by the client (like newTextVector).
StringType _get_setelementtag(self, basename)
Return xml tag of an element that is send by the server when an IDSet* function is called on vector which contains the element (like oneText).
StringType _get_setvectortag(self, basename)
Return xml tag of a vector that is send by the server when am IDSet* function is called (like setTextVector).
StringType _get_vector_repr(self, basename)
Return printable representation of the type of the vector .

Instance Variable Summary
a list of indielement elementclasses: a list of classes derived from indielement the index has to be synchronous with basenames
a list of indivector vectorclasses: a list of classes derived from indielement the index has to be synchronous with basenames
    Inherited from _indinameconventions
list of StringType basenames: The possible "Basenames" of an indiobject ["Text","Switch","Number","BLOB","Light"]

Method Details

__init__(self)
(Constructor)

Constructor
Overrides:
indiclient._indinameconventions.__init__

create(self, tag, attrs)

Parameters:
tag - the XML tag denoting the vector
           (type=StringType)
attrs - The XML attributes of the vector
           (type=DictType)
Returns:
An indiobject created according to the information given in tag and attrs
           (type=indiobject)

Instance Variable Details

elementclasses

a list of classes derived from indielement the index has to be synchronous with basenames
Type:
a list of indielement

vectorclasses

a list of classes derived from indielement the index has to be synchronous with basenames
Type:
a list of indivector

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