| Home | Trees | Index | Help |
|
|---|
|
|
object --+
|
CachedPropertyObject --+
|
object --+ |
| |
StanzaPayloadWrapperObject --+
|
DiscoInfo
| Method Summary | |
|---|---|
Initialize an DiscoInfo object. | |
__del__(self)
| |
Add a feature to self. | |
DiscoIdentity |
Add an identity to the DiscoInfo object. |
list of unicode |
Get the features contained in self. |
list of DiscoIdentity |
List the identity objects contained in self. |
unicode |
Get the node address of the DiscoInfo object. |
bool |
Check if self contains the named feature. |
bool |
Check if the item described by self belongs to the given category
and type. |
Clear cached feature list. | |
Clear cached identity list. | |
Remove a feature from self. | |
Set features in the disco#info object. | |
Set identities in the disco#info object. | |
Set the node of the disco#info element. | |
| Inherited from CachedPropertyObject | |
| |
| |
| Inherited from StanzaPayloadWrapperObject | |
libxml2.xmlNode or libxml2.xmlDoc |
Get the XML representation of self. |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__str__() <==> str(x) | |
| Instance Variable Summary | |
|---|---|
tuple of unicode |
features: features in the disco#info object. |
tuple of DiscoIdentity |
identities: identities in the disco#info object. |
unicode |
node: node name of the disco#info element (cached). |
libxml2.xmlNode |
xmlnode: XML element listing the items. |
| Method Details |
|---|
__init__(self,
xmlnode_or_node=None,
parent=None,
doc=None)
|
add_feature(self, var)Add a feature toself.
|
add_identity(self, item_name, item_category=None, item_type=None)Add an identity to theDiscoInfo object.
|
get_features(self)Get the features contained inself.
|
get_identities(self)List the identity objects contained inself.
|
get_node(self)Get the node address of theDiscoInfo object.
|
has_feature(self, var)Check ifself contains the named feature.
|
identity_is(self, item_category, item_type=None)Check if the item described byself belongs to the given category
and type.
|
invalidate_features(self)Clear cached feature list. |
invalidate_identities(self)Clear cached identity list. |
remove_feature(self, var)Remove a feature fromself.
|
set_features(self, features)Set features in the disco#info object. All existing features are removed from
|
set_identities(self, identities)Set identities in the disco#info object. Remove all existing identities from
|
set_node(self, node)Set the node of the disco#info element.
|
| Instance Variable Details |
|---|
featuresfeatures in the disco#info object.
|
identitiesidentities in the disco#info object.
|
nodenode name of the disco#info element (cached).
|
xmlnodeXML element listing the items.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Dec 26 17:57:29 2005 | http://epydoc.sf.net |