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

Class Ctime

source code

This class encapsulates a <timex> object in KAF/NAF

Instance Methods [hide private]
 
__init__(self, node=None)
Constructor of the object
source code
string
get_functionInDocument(self)
Returns the timex functionnInDocument
source code
string
get_id(self)
Returns the timex identifier
source code
xml Element
get_node(self)
Returns the node of the element
source code
Cspan
get_span(self)
Returns the span object of the timex
source code
string
get_type(self)
Returns the timex type
source code
string
get_value(self)
Returns the timex valuee
source code
 
set_functionInDocument(self, f)
Sets the functionInDocument for the timex
source code
 
set_id(self, i)
Sets the identifier for the timex
source code
 
set_span(self, this_span)
Sets the span for the timex
source code
 
set_timex_type(self, t)
Sets the type for the timex
source code
 
set_type(self, t)
Sets the type for the timex
source code
 
set_value(self, v)
Sets the value for the timex
source code
Method Details [hide private]

__init__(self, node=None)
(Constructor)

source code 

Constructor of the object

Parameters:
  • node - this is the node of the element. If None it will create a new object.

get_functionInDocument(self)

source code 

Returns the timex functionnInDocument

Returns: string
the timex functionnInDocument

get_id(self)

source code 

Returns the timex identifier

Returns: string
the timex identifier

get_node(self)

source code 

Returns the node of the element

Returns: xml Element
the node of the element

get_span(self)

source code 

Returns the span object of the timex

Returns: Cspan
the timex span

get_type(self)

source code 

Returns the timex type

Returns: string
the timex type

get_value(self)

source code 

Returns the timex valuee

Returns: string
the timex value

set_functionInDocument(self, f)

source code 

Sets the functionInDocument for the timex

Parameters:
  • f (string) - timex functionInDocument

set_id(self, i)

source code 

Sets the identifier for the timex

Parameters:
  • i (string) - timex identifier

set_span(self, this_span)

source code 

Sets the span for the timex

Parameters:
  • this_span (Cspan) - timex identifier

set_timex_type(self, t)

source code 

Sets the type for the timex

Parameters:
  • t (string) - timex type

set_type(self, t)

source code 

Sets the type for the timex

Parameters:
  • t (string) - timex type

set_value(self, v)

source code 

Sets the value for the timex

Parameters:
  • v (string) - timex value