xarconverter
converter
node
plugin_content.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
3
6
7
""" Contains a class that holds diagram informations
8
.. module:: node
9
"""
10
11
import
converter.node
as
node
12
13
14
class
PluginContent
(
node.Node
):
15
""" Stores informations about pluginContent in the xar format
16
"""
17
18
def
__init__
(self, attrs):
19
super(PluginContent, self).
__init__
(
"PluginContent"
)
20
21
self.
subnodes
= []
22
23
def
add_subnode
(self, subnode):
24
self.
subnodes
.append(subnode)
25
26
def
beacon
(self):
27
return
"PluginContent"
28
29
30
class
PluginSubNode
(
node.Node
):
31
""" Stores informations about sub-nodes in plugin content
32
"""
33
34
def
__init__
(self, name, attrs):
35
super(PluginSubNode, self).
__init__
(name)
36
37
self.
attributes
= {}
38
self.
subnodes
= []
39
self.
content
=
None
40
41
def
add_attrs
(self, attributes):
42
attrNames = attributes.getNames()
43
for
attrName
in
attrNames:
44
self.
attributes
[attrName] = attributes.getValue(attrName)
45
46
def
add_subnode
(self, subnode):
47
self.
subnodes
.append(subnode)
48
49
def
add_content
(self, content):
50
self.
content
= content
51
52
def
beacon
(self):
53
return
self.
node_type
converter.node.plugin_content.PluginSubNode.content
content
Definition:
plugin_content.py:39
converter.node.plugin_content.PluginSubNode.attributes
attributes
Definition:
plugin_content.py:37
converter.node
Definition:
xarconverter/converter/node/__init__.py:1
converter.node.Node.node_type
node_type
Definition:
xarconverter/converter/node/__init__.py:19
converter.node.plugin_content.PluginContent
Definition:
plugin_content.py:14
converter.node.plugin_content.PluginSubNode.subnodes
subnodes
Definition:
plugin_content.py:38
converter.node.plugin_content.PluginContent.__init__
def __init__(self, attrs)
Definition:
plugin_content.py:18
converter.node.plugin_content.PluginContent.subnodes
subnodes
Definition:
plugin_content.py:21
converter.node.plugin_content.PluginSubNode.add_subnode
def add_subnode(self, subnode)
Definition:
plugin_content.py:46
converter.node.plugin_content.PluginSubNode.beacon
def beacon(self)
Definition:
plugin_content.py:52
converter.node.plugin_content.PluginContent.add_subnode
def add_subnode(self, subnode)
Definition:
plugin_content.py:23
converter.node.plugin_content.PluginSubNode.add_content
def add_content(self, content)
Definition:
plugin_content.py:49
converter.node.Node
Definition:
xarconverter/converter/node/__init__.py:12
converter.node.plugin_content.PluginSubNode.add_attrs
def add_attrs(self, attributes)
Definition:
plugin_content.py:41
converter.node.plugin_content.PluginSubNode
Definition:
plugin_content.py:30
converter.node.plugin_content.PluginContent.beacon
def beacon(self)
Definition:
plugin_content.py:26
converter.node.plugin_content.PluginSubNode.__init__
def __init__(self, name, attrs)
Definition:
plugin_content.py:34
naoqi_libqicore
Author(s): Aldebaran
autogenerated on Wed Sep 14 2022 02:22:41