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

Class Ctarget

source code

This class encapsulates the target element within a span object

Instance Methods [hide private]
 
__init__(self, node=None)
Constructor of the object
source code
string
get_id(self)
Returns the id of the element
source code
xml Element
get_node(self)
Returns the node of the element
source code
boolean
is_head(self)
Returns whether this target is set as head or not
source code
 
set_head(self, head)
Sets value of head
source code
 
set_id(self, this_id)
Set the id of the element
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_id(self)

source code 

Returns the id of the element

Returns: string
the id of the element

get_node(self)

source code 

Returns the node of the element

Returns: xml Element
the node of the element

is_head(self)

source code 

Returns whether this target is set as head or not

Returns: boolean
whether this target is set as head or not

set_id(self, this_id)

source code 

Set the id of the element

Parameters:
  • this_id (string) - the id for the element