Module opinion_data :: Class Ctarget
[hide private]
[frames] | no frames]

Class Ctarget

source code

Instance Methods [hide private]
 
__init__(self, node=None)
Constructor of the object
source code
 
__str__(self) source code
string
get_comment(self)
Returns the comment
source code
xml Element
get_node(self)
Returns the node of the element
source code
Cspan
get_span(self)
Returns the span of the object
source code
 
set_comment(self, c)
Sets the comment for the element
source code
 
set_span(self, my_span)
Sets the span with the provided span object
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

get_comment(self)

source code 

Returns the comment

Returns: string
the comment

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 of the object

Returns: Cspan
the span object

set_comment(self, c)

source code 

Sets the comment for the element

Parameters:
  • c (string) - comment for the element

set_span(self, my_span)

source code 

Sets the span with the provided span object

Parameters:
  • my_span (Cspan) - span object