From: PASCALE NOYRET Date: Mon, 5 Oct 2020 15:05:02 +0000 (+0200) Subject: partage avec Eric X-Git-Tag: MDM_V0~10^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=461766d355ae063ad30248f339d13cfa9b0bb15b;p=tools%2Feficas.git partage avec Eric --- diff --git a/Tests/MappingAccasXsd/Ambiguite/cata_Ambigu_UnionType.py b/Tests/MappingAccasXsd/Ambiguite/cata_Ambigu_UnionType.py new file mode 100644 index 00000000..d1c26ff6 --- /dev/null +++ b/Tests/MappingAccasXsd/Ambiguite/cata_Ambigu_UnionType.py @@ -0,0 +1,58 @@ +# Copyright (C) 2008-2018 EDF R&D +# +# This file is part of SALOME ADAO module +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +import os, re +import Accas +from Accas import * +monFichier=os.path.abspath(__file__) + +JdC = JDC_CATA ( + code = 'Essai', + ) + +VERSION_CATALOGUE='V_0' +LeProc = PROC( nom = 'LeProc', + F1 = FACT( statut ='o', + SimpA = SIMP(statut ="o",typ='I', defaut = 2, ), + SimpB = SIMP(statut ="o",typ='R', defaut = 2, ), + SimpC = SIMP(statut ="o",typ='R', defaut = 2, ), + SimpD = SIMP(statut ="o",typ='R', defaut = 2, ), + SimpE = SIMP(statut ="o",typ='R', defaut = 2, ), + SimpK = SIMP(statut ="o",typ='R', defaut = 2, ), + ), + SimpA = SIMP(statut ="o",typ='R', defaut = 2, ), + B1=BLOC( condition = 'SimpA == 1', + SimpK = SIMP(statut ="o",typ='TXM', nomXML='forceNomSimpK' ), + SimpC = SIMP(statut ="f",typ='R' ), + SimpE = SIMP(statut ="f",typ='R' ), + ), + B2=BLOC( condition = 'SimpA == 3', + SimpK = SIMP(statut ="o",typ='TXM', nomXML='forceNomSimpK' ), + SimpC = SIMP(statut ="f",typ='R' ), + SimpD = SIMP(statut ="f",typ='R' ), + ), + F2 = FACT( statut ='o', + SimpA = SIMP(statut ="o",typ='R', defaut = 3, ), + SimpB = SIMP(statut ="o",typ='I', defaut = 2, ), + SimpC = SIMP(statut ="o",typ='I', defaut = 2, ), + SimpD = SIMP(statut ="o",typ='I', defaut = 2, ), + SimpE = SIMP(statut ="o",typ='I', defaut = 2, ), + SimpK = SIMP(statut ="o",typ='I', defaut = 2, ), + ), +)