def add_should(self, component): """ Add the specified component as a "should" component. :param component: The component to add. :return: None """ ValidationHelper.validate_es_component_type(component) self._should.append(component)
def add_must_not(self, component): """ Add the specified component as a "must" component. :param component: The component to add. :return: None """ ValidationHelper.validate_es_component_type(component) self._must_not.append(component)
def add_or(self, component): """ Add the specified component as part of the list of "OR" components contained by this BooleanComponent. :param component: The component to add. :return: None """ ValidationHelper.validate_es_component_type(component) self._or_components.append(component)