Module features_data :: Class Cproperty
[hide private]
[frames] | no frames]

Class Cproperty

source code

This class encapsulates the property element in KAF/NAF

Instance Methods [hide private]
 
__init__(self, node=None, type='NAF')
Constructor of the object
source code
string
get_id(self)
Returns the identifier of the element
source code
xml Element
get_node(self)
Returns the node of the element
source code
Creferences
get_references(self)
Returns the references of the element
source code
string
get_type(self)
Returns the type of the property
source code
 
set_id(self, pid)
Set the property identifier
source code
 
set_reference(self, ref)
Set the property references
source code
 
set_type(self, t)
Set the property type
source code
Method Details [hide private]

__init__(self, node=None, type='NAF')
(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
  • type (string) - the type of the object (KAF or NAF)

get_id(self)

source code 

Returns the identifier of the element

Returns: string
the identifier of the element

get_node(self)

source code 

Returns the node of the element

Returns: xml Element
the node of the element

get_references(self)

source code 

Returns the references of the element

Returns: Creferences
the references object of the element (iterator)

get_type(self)

source code 

Returns the type of the property

Returns: string
the type of the element

set_id(self, pid)

source code 

Set the property identifier

Parameters:
  • pid (string) - property identifier

set_reference(self, ref)

source code 

Set the property references

Parameters:

set_type(self, t)

source code 

Set the property type

Parameters:
  • t (string) - property type