Home | Trees | Index | Help |
---|
Package xmpp :: Module protocol :: Class DataField |
|
Node
--+
|
DataField
Method Summary | |
---|---|
Create new data field of specified name,value and type. | |
Add one more label-option pair to this field. | |
Add one more value to this field. | |
Return the description of this field. | |
Return label-option pairs list associated with this field. | |
Get type of this field. | |
getValue(self)
| |
Return the list of values associated with this field. | |
Get 'var' attribute value of this field. | |
Returns in this field a required one. | |
Set the description of this field. | |
Set label-option pairs list associated with this field. | |
Change the state of the 'required' flag. | |
Set type of this field. | |
Set the value of this field. | |
Set the values of this field as values-list. | |
Set 'var' attribute value of this field. | |
Inherited from Node | |
Deletes node's attribute "item". | |
Reduce memory usage caused by T/NT classes - use memory only when needed. | |
Returns node's attribute "item" value. | |
Sets node's attribute "item" value. | |
Method used to dump node into textual representation. | |
If "node" argument is provided, adds it as child node. | |
Adds some CDATA to node. | |
Removes all CDATA from the node. | |
Deletes an attribute "key" | |
Deletes the "node" from the node's childs list, if "node" is an instance. | |
Returns value of specified attribute. | |
Returns all node's attributes as dictionary. | |
Returns all node's child nodes as list. | |
Returns all node CDATA as string (concatenated). | |
Returns the name of node | |
Returns the namespace of node | |
Returns the parent of node (if present). | |
Return the payload of node i.e. | |
Filters all child nodes using specified arguments as filter. | |
Returns attribute value of the child with specified name (or None if no such attribute). | |
Returns cocatenated CDATA of the child with specified name. | |
Filters all child nodes using specified arguments as filter. | |
Checks if node have attribute "key". | |
Sets attribute "key" with the value "val". | |
Sets node's CDATA to provided string. | |
Changes the node name. | |
Changes the node namespace. | |
Sets node's parent to "node". | |
Sets node payload according to the list specified. | |
Same as getTag but if the node with specified namespace/attributes not found, creates such node and returns it. | |
Creates new node (if not already present) with name "tag" and sets it's attribute "attr" to value "val". | |
Creates new node (if not already present) with name "tag" and (optionally) attributes "attrs" and sets it's CDATA to string "val". |
Class Variable Summary | |
---|---|
Inherited from Node | |
int |
FORCE_NODE_RECREATION = 0 |
Method Details |
---|
__init__(self,
name=None,
value=None,
typ=None,
required=0,
desc=None,
options=[],
node=None)
Create new data field of specified name,value and type. Also
'required','desc' and 'options' fields can be set. Alternatively other
XML object can be passed in as the 'node' parameted to replicate it as
a new datafiled.
|
addOption(self, opt)Add one more label-option pair to this field. |
addValue(self, val)Add one more value to this field. Used in 'get' iq's or such. |
getDesc(self)Return the description of this field. |
getOptions(self)Return label-option pairs list associated with this field. |
getType(self)Get type of this field. |
getValues(self)Return the list of values associated with this field. |
getVar(self)Get 'var' attribute value of this field. |
isRequired(self)Returns in this field a required one. |
setDesc(self, desc)Set the description of this field. |
setOptions(self, lst)Set label-option pairs list associated with this field. |
setRequired(self, req=1)Change the state of the 'required' flag. |
setType(self, val)Set type of this field. |
setValue(self, val)Set the value of this field. |
setValues(self, lst)Set the values of this field as values-list. Replaces all previous filed values! If you need to just add a value - use addValue method. |
setVar(self, val)Set 'var' attribute value of this field. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed May 4 07:28:28 2005 | http://epydoc.sf.net |