Module factuality_data :: Class Cfactualitylayer
[hide private]
[frames] | no frames]

Class Cfactualitylayer

source code

This class encapsulates the factvalue layer in KAF/NAF (old version)

Instance Methods [hide private]
 
__get_factvalue_nodes(self) source code
 
__init__(self, node=None)
Constructor of the object
source code
 
__str__(self) source code
 
add_factvalue(self, my_factvalue)
Adds a factvalue object to the layer
source code
Cfactvalue
get_factvalues(self)
Iterator that returns all the factualitylayer in the layer
source code
xml Element
get_node(self)
Returns the node of the element
source code
 
remove_this_factvalue(self, factvalue_id)
Removes the factvalue for the given factvalue identifier
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_factvalue(self, my_factvalue)

source code 

Adds a factvalue object to the layer

Parameters:
  • my_factvalue (Cfactvalue) - the factvalue object to be added

get_factvalues(self)

source code 

Iterator that returns all the factualitylayer in the layer

Returns: Cfactvalue
list of factualitylayer (iterator)

get_node(self)

source code 

Returns the node of the element

Returns: xml Element
the node of the element

remove_this_factvalue(self, factvalue_id)

source code 

Removes the factvalue for the given factvalue identifier

Parameters:
  • factvalue_id (string) - the factvalue identifier to be removed