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

Class Cfactuality

source code

Instance Methods [hide private]
 
__init__(self, node=None, type='NAF')
Constructor of the object
source code
 
add_factval(self, fval)
Sets the id of the element
source code
Cfactuality
get_factVals(self)
Iterator to get the factuality values
source code
 
get_id(self)
Returns the identifier of the factuality element
source code
 
get_node(self)
Returns the node
source code
 
get_span(self)
Returns the span of the factuality element
source code
 
set_id(self, this_id)
Sets the id of the element
source code
 
set_span(self, my_span)
Sets the id of the element
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 and 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)

add_factval(self, fval)

source code 

Sets the id of the element

Parameters:
  • this_id (Cspan) - the resource defining factuality

get_factVals(self)

source code 

Iterator to get the factuality values

Returns: Cfactuality
iterator for getting the factuality's value objects

get_span(self)

source code 

Returns the span of the factuality element

Parameters:
  • my_span (Cspan) - span object

set_id(self, this_id)

source code 

Sets the id of the element

Parameters:
  • this_id (string) - the resource defining factuality

set_span(self, my_span)

source code 

Sets the id of the element

Parameters:
  • this_id (Cspan) - the resource defining factuality