Module dependency_data :: Class Cdependencies
[hide private]
[frames] | no frames]

Class Cdependencies

source code

This class encapsulates the dependency layer in KAF/NAF

Instance Methods [hide private]
 
__get_node_deps(self) source code
 
__init__(self, node=None)
Constructor of the object
source code
 
__str__(self) source code
 
add_dependency(self, my_dep)
Adds a dependency object to the layer
source code
Cdependency
get_dependencies(self)
Iterator that returns all the dependencies in the layer
source code
xml Element
get_node(self)
Returns the node of the element
source code
 
to_kaf(self) source code
 
to_naf(self) source code
Method Details [hide private]

__init__(self, node=None)
(Constructor)

source code 

Constructor of the object

Parameters:
  • node (xml Element or None (to create and empty one)) - this is the node of the element. If it is None it will create a new object

add_dependency(self, my_dep)

source code 

Adds a dependency object to the layer

Parameters:
  • my_dep (Cdependency) - the dependency object to be added

get_dependencies(self)

source code 

Iterator that returns all the dependencies in the layer

Returns: Cdependency
list of dependencies (iterator)

get_node(self)

source code 

Returns the node of the element

Returns: xml Element
the node of the element