Module time_data :: Class CtimeExpressions
[hide private]
[frames] | no frames]

Class CtimeExpressions

source code

This class encapsulates the timeExpressions layer (collection of timex3 objects)

Instance Methods [hide private]
 
__get_node_timex3s(self) source code
 
__init__(self, node=None)
Constructor of the object
source code
Ctime
__iter__(self)
Iterator that returns single timex objects in the layer
source code
 
add_timex(self, timex_obj)
Adds a timex object to the layer.
source code
xml Element
get_node(self)
Returns the node of the element
source code
Ctime
get_timeExpressions(self)
Iterator to get the timex objects
source code
 
get_timex(self, timex_id)
Returns the timex object for the supplied identifier
source code
 
remove_timex3s(self, list_timex_ids)
Removes a list of terms from the layer
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 an empty one)) - this is the node of the element. If it is None, a new element will be created.

__iter__(self)

source code 

Iterator that returns single timex objects in the layer

Returns: Ctime
timex objects

add_timex(self, timex_obj)

source code 

Adds a timex object to the layer.

Parameters:
  • timex_obj (Ctime) - the timex object

get_node(self)

source code 

Returns the node of the element

Returns: xml Element
the node of the element

get_timeExpressions(self)

source code 

Iterator to get the timex objects

Returns: Ctime
iterator for getting the timex object

get_timex(self, timex_id)

source code 

Returns the timex object for the supplied identifier

Parameters:
  • timex_id (string) - timex identifier

remove_timex3s(self, list_timex_ids)

source code 

Removes a list of terms from the layer

Parameters:
  • list_timex_ids (list (of strings)) - list of timex identifier to be removed