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

Class Cfactualities

source code

This class represents the new factuality layer

Instance Methods [hide private]
 
__init__(self, node=None, type='NAF')
Constructor of the object
source code
 
__str__(self) source code
 
add_factuality(self, factval)
Adds a factuality element to the layer
source code
Cfactuality
get_factualities(self)
Iterator to get the factualities
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, type='NAF')
(Constructor)

source code 

Constructor of the object

Parameters:
  • node (xml ELement or None (to create an empty one)) - this is the node of the element. If it is None it will create a new object
  • type (string) - the type of the object (KAF or NAF), NAF is default

get_factualities(self)

source code 

Iterator to get the factualities

Returns: Cfactuality
iterator for getting the factuality objects

get_node(self)

source code 

Returns the node of the element

Returns: xml Element
the node of the element