コード例 #1
0
 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)
コード例 #2
0
 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)
コード例 #3
0
 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)