コード例 #1
0
ファイル: detecteur.py プロジェクト: SadarSSI/hermes
 def transcription(self):
     """
     :rtype: hermes.detecteur.DateRechercheInteret
     """
     from hermes.detecteur import DateRechercheInteret as Critere
     return Critere(self.designation, self.prefixe, self.focus_cle,
                    self.est_obligatoire, self.friendly_name)
コード例 #2
0
ファイル: detecteur.py プロジェクト: SadarSSI/hermes
 def transcription(self):
     """
     :rtype: hermes.detecteur.CleRechercheInteret
     """
     from hermes.detecteur import CleRechercheInteret as Critere
     return Critere(self.designation, self.cle_recherchee,
                    self.est_obligatoire, self.friendly_name)
コード例 #3
0
ファイル: detecteur.py プロジェクト: SadarSSI/hermes
 def transcription(self):
     """
     :rtype: hermes.detecteur.ExpressionXPathRechercheInteret
     """
     from hermes.detecteur import ExpressionXPathRechercheInteret as Critere
     return Critere(self.designation, self.expression_xpath,
                    self.est_obligatoire, self.friendly_name)
コード例 #4
0
ファイル: detecteur.py プロジェクト: SadarSSI/hermes
 def transcription(self):
     """
     :rtype: hermes.detecteur.InformationRechercheInteret
     """
     from hermes.detecteur import InformationRechercheInteret as Critere
     return Critere(self.designation, self.information_cible,
                    self.focus_cle, self.est_obligatoire,
                    self.friendly_name)
コード例 #5
0
ファイル: detecteur.py プロジェクト: SadarSSI/hermes
 def transcription(self):
     """
     :rtype: hermes.detecteur.LocalisationExpressionRechercheInteret
     """
     from hermes.detecteur import LocalisationExpressionRechercheInteret as Critere
     return Critere(self.designation, self.expression_droite,
                    self.expression_gauche, self.focus_cle,
                    self.est_obligatoire, self.friendly_name)
コード例 #6
0
ファイル: detecteur.py プロジェクト: SadarSSI/hermes
 def transcription(self):
     """
     :rtype: hermes.detecteur.IdentificateurRechercheInteret
     """
     from hermes.detecteur import IdentificateurRechercheInteret as Critere
     return Critere(self.designation,
                    self.prefixe,
                    taille_stricte=None,
                    focus_cle=self.focus_cle,
                    est_obligatoire=self.est_obligatoire,
                    friendly_name=self.friendly_name)
コード例 #7
0
ファイル: detecteur.py プロジェクト: SadarSSI/hermes
    def transcription(self):
        """
        :rtype: hermes.detecteur.OperationLogiqueRechercheInteret
        """
        from hermes.detecteur import OperationLogiqueRechercheInteret as Critere

        kwargs = dict()

        for sous_regle in self.sous_regles:
            kwargs['ma_cond_{}'.format(
                sous_regle.id)] = sous_regle.transcription()

        kwargs['friendly_name'] = self.friendly_name

        return Critere(self.designation, self.operande, **kwargs)