def __set_owner(self, owner): if owner != None: assert_type(owner, Namespace) self.__owner = owner
def add_owned_member(self, member): assert member != None, "member to add is None" assert_type(self, Named_Element) self.__owned_member.append(member)
def __set_lower(self, lower): if lower != None: assert_type(lower, int) self.__lower = lower
def __set_is_unique(self, is_unique): assert_type(is_unique, True) self.__is_unique = is_unique
def __set_is_ordered(self, is_ordered): assert_type(is_ordered, True) self.__is_ordered = is_ordered
def add_annoted_element(annoted_element): assert_type(annoted_element, Element) self.__annoted_element.append(annoted_element)
def __set_must_be_owned(self, must_be_owned): assert_type(must_be_owned, bool) if must_be_owned and (self.__owner == None): raise ValueError("the element must be owned")