def __init__(self,node=None,type='NAF'):
        """
        Constructor of the object
        @type node: xml Element or None (to create and empty one)
        @param node:  this is the node of the element. If it is None it will create a new object
        @type type: string
        @param type: the type of the object (KAF or NAF)
        """
        self.idx = {}
        self.type = type
        if node is None:
            self.node = etree.Element('terms')
        else:
            self.node = node
            for node_term in self.__get_node_terms():
                term_obj = Cterm(node_term,self.type)
                self.idx[term_obj.get_id()] = node_term
def __init__ ( self , node = None , type = 'NAF' ) : self . idx = { } self . type = type if node is None : self . node = etree . Element ( 'terms' ) else : self . node = node for node_term in self . __get_node_terms ( ) : term_obj = Cterm ( node_term , self . type ) self . idx [ term_obj . get_id ( ) ] = node_term
Constructor of the object
        @type node: xml Element or None (to create and empty one)
        @param node:  this is the node of the element. If it is None it will create a new object
        @type type: string
        @param type: the type of the object (KAF or NAF)