Module header_data :: Class ClinguisticProcessors
[hide private]
[frames] | no frames]

Class ClinguisticProcessors

source code

This class encapsulates the linguistic processors element in the header

Instance Methods [hide private]
 
__init__(self, node=None)
Constructor of the object
source code
 
add_linguistic_processor(self, my_lp)
Add a linguistic processor object to the layer
source code
string
get_layer(self)
Returns the layer of the element
source code
xml Element
get_node(self)
Returns the node of the element
source code
 
set_layer(self, layer)
Set the layer 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

add_linguistic_processor(self, my_lp)

source code 

Add a linguistic processor object to the layer

Parameters:
  • my_lp (Clp) - linguistic processor object

get_layer(self)

source code 

Returns the layer of the element

Returns: string
the layer of the element

get_node(self)

source code 

Returns the node of the element

Returns: xml Element
the node of the element

set_layer(self, layer)

source code 

Set the layer of the element

Parameters:
  • layer (string) - layer