This is an automated email from the git hooks/post-receive script. New commit to branch feature/7614 in repository observe. See http://git.codelutin.com/observe.git commit a58716a6738cbcafe80aa4ff0202face8eb621e2 Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Fri Oct 23 10:04:03 2015 +0200 ajout des validateurs (refs #7614) --- ...tsCompositionDto-n1-update-error-validation.xml | 112 +++++++++++++++++++++ ...esCompositionDto-n1-update-error-validation.xml | 99 ++++++++++++++++++ ...esCompositionDto-n1-update-error-validation.xml | 82 +++++++++++++++ ...ksCompositionDto-n1-update-error-validation.xml | 98 ++++++++++++++++++ ...n1-update-baitsComposition-error-validation.xml | 53 ++++++++++ ...ate-branchlinesComposition-error-validation.xml | 53 ++++++++++ ...date-floatlinesComposition-error-validation.xml | 53 ++++++++++ ...1-update-globalComposition-error-validation.xml | 39 +++++++ ...n1-update-hooksComposition-error-validation.xml | 53 ++++++++++ 9 files changed, 642 insertions(+) diff --git a/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/BaitsCompositionDto-n1-update-error-validation.xml b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/BaitsCompositionDto-n1-update-error-validation.xml new file mode 100644 index 0000000..4cba6cb --- /dev/null +++ b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/BaitsCompositionDto-n1-update-error-validation.xml @@ -0,0 +1,112 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + #%L + ObServe :: Validation + %% + Copyright (C) 2008 - 2010 IRD, Codelutin, Tony Chemit + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this program. If not, see + <http://www.gnu.org/licenses/gpl-3.0.html>. + #L% + --> + +<!DOCTYPE validators PUBLIC + "-//Apache Struts//XWork Validator 1.0.3//EN" + "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd"> +<validators> + + <field name="baitType"> + + <!-- pas de baitType selectionnee --> + <field-validator type="required" short-circuit="true"> + <message>validator.baitsComposition.required.baitType</message> + </field-validator> + + <!-- baitType desactive --> + <field-validator type="fieldexpression" short-circuit="true"> + <param name="expression"> + <![CDATA[ baitType.enabled ]]> + </param> + <message>validator.baitsComposition.desactivated.baitType</message> + </field-validator> + + </field> + + <field name="baitSettingStatus"> + + <!-- pas de baitSettingStatus selectionnee --> + <field-validator type="required" short-circuit="true"> + <message>validator.baitsComposition.required.baitSettingStatus</message> + </field-validator> + + <!-- baitSettingStatus desactive --> + <field-validator type="fieldexpression" short-circuit="true"> + <param name="expression"> + <![CDATA[ baitSettingStatus == null || baitSettingStatus.enabled ]]> + </param> + <message>validator.baitsComposition.desactivated.baitSettingStatus</message> + </field-validator> + + </field> + + <field name="individualSize"> + + <!-- individualSize non saisi || 0.0 <= individualSize <= 50.0 --> + <field-validator type="fieldexpressionwithparams" short-circuit="true"> + <param name="doubleParams">min:0.0|max:50.0</param> + <param name="expression"> + <![CDATA[ individualSize == null || (doubles.min <= individualSize && individualSize <= doubles.max)]]> + </param> + <message> + validator.baitsComposition.bound.individualSize##${doubles.min}##${doubles.max} + </message> + </field-validator> + + </field> + + + <field name="individualWeight"> + + <!-- individualWeight non saisi || 0.0 <= individualWeight <= 5.0 --> + <field-validator type="fieldexpressionwithparams" short-circuit="true"> + <param name="doubleParams">min:0.0|max:5.0</param> + <param name="expression"> + <![CDATA[ individualWeight == null || (doubles.min <= individualWeight && individualWeight <= doubles.max)]]> + </param> + <message> + validator.baitsComposition.bound.individualWeight##${doubles.min}##${doubles.max} + </message> + </field-validator> + + </field> + + <field name="proportion"> + + <!-- pas de proportion renseigne --> + <field-validator type="required" short-circuit="true"> + <message>validator.baitsComposition.required.proportion</message> + </field-validator> + + <!-- 1 <= proportion <= 100 --> + <field-validator type="double" short-circuit="true"> + <param name="minInclusive">1</param> + <param name="maxInclusive">100</param> + <message> + validator.baitsComposition.bound.proportion##${minInclusive}##${maxInclusive} + </message> + </field-validator> + + </field> + +</validators> diff --git a/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/BranchlinesCompositionDto-n1-update-error-validation.xml b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/BranchlinesCompositionDto-n1-update-error-validation.xml new file mode 100644 index 0000000..a17435f --- /dev/null +++ b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/BranchlinesCompositionDto-n1-update-error-validation.xml @@ -0,0 +1,99 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + #%L + ObServe :: Validation + %% + Copyright (C) 2008 - 2010 IRD, Codelutin, Tony Chemit + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this program. If not, see + <http://www.gnu.org/licenses/gpl-3.0.html>. + #L% + --> + +<!DOCTYPE validators PUBLIC + "-//Apache Struts//XWork Validator 1.0.3//EN" + "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd"> +<validators> + + <field name="topType"> + + <!-- pas de topType selectionnee --> + <field-validator type="required" short-circuit="true"> + <message>validator.branchlinesComposition.required.topType</message> + </field-validator> + + <!-- topType desactive --> + <field-validator type="fieldexpression" short-circuit="true"> + <param name="expression"> + <![CDATA[ topType.enabled ]]> + </param> + <message>validator.branchlinesComposition.desactivated.topType</message> + </field-validator> + + </field> + + <field name="tracelineType"> + + <!-- pas de tracelineType selectionnee --> + <field-validator type="required" short-circuit="true"> + <message>validator.branchlinesComposition.required.tracelineType</message> + </field-validator> + + <!-- tracelineType desactive --> + <field-validator type="fieldexpression" short-circuit="true"> + <param name="expression"> + <![CDATA[ tracelineType.enabled ]]> + </param> + <message>validator.branchlinesComposition.desactivated.tracelineType</message> + </field-validator> + + </field> + + <field name="length"> + + <!-- pas de length renseigne --> + <field-validator type="required" short-circuit="true"> + <message>validator.branchlinesComposition.required.length</message> + </field-validator> + + <!-- 0 <= length <= 50 --> + <field-validator type="double" short-circuit="true"> + <param name="minInclusive">0</param> + <param name="maxInclusive">50</param> + <message> + validator.branchlinesComposition.bound.length##${minInclusive}##${maxInclusive} + </message> + </field-validator> + + </field> + + <field name="proportion"> + + <!-- pas de proportion renseigne --> + <field-validator type="required" short-circuit="true"> + <message>validator.branchlinesComposition.required.proportion</message> + </field-validator> + + <!-- 1 <= proportion <= 100 --> + <field-validator type="double" short-circuit="true"> + <param name="minInclusive">1</param> + <param name="maxInclusive">100</param> + <message> + validator.branchlinesComposition.bound.proportion##${minInclusive}##${maxInclusive} + </message> + </field-validator> + + </field> + +</validators> diff --git a/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/FloatlinesCompositionDto-n1-update-error-validation.xml b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/FloatlinesCompositionDto-n1-update-error-validation.xml new file mode 100644 index 0000000..544f641 --- /dev/null +++ b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/FloatlinesCompositionDto-n1-update-error-validation.xml @@ -0,0 +1,82 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + #%L + ObServe :: Validation + %% + Copyright (C) 2008 - 2010 IRD, Codelutin, Tony Chemit + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this program. If not, see + <http://www.gnu.org/licenses/gpl-3.0.html>. + #L% + --> + +<!DOCTYPE validators PUBLIC + "-//Apache Struts//XWork Validator 1.0.3//EN" + "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd"> +<validators> + + <field name="lineType"> + + <!-- pas de lineType selectionnee --> + <field-validator type="required" short-circuit="true"> + <message>validator.floatlinesComposition.required.lineType</message> + </field-validator> + + <!-- lineType desactive --> + <field-validator type="fieldexpression" short-circuit="true"> + <param name="expression"> + <![CDATA[ lineType.enabled ]]> + </param> + <message>validator.floatlinesComposition.desactivated.lineType</message> + </field-validator> + + </field> + + <field name="length"> + + <!-- pas de length renseigne --> + <field-validator type="required" short-circuit="true"> + <message>validator.floatlinesComposition.required.length</message> + </field-validator> + + <!-- 0 <= length <= 100 --> + <field-validator type="double" short-circuit="true"> + <param name="minInclusive">0</param> + <param name="maxInclusive">100</param> + <message> + validator.floatlinesComposition.bound.length##${minInclusive}##${maxInclusive} + </message> + </field-validator> + + </field> + + <field name="proportion"> + + <!-- pas de proportion renseigne --> + <field-validator type="required" short-circuit="true"> + <message>validator.floatlinesComposition.required.proportion</message> + </field-validator> + + <!-- 1 <= proportion <= 100 --> + <field-validator type="double" short-circuit="true"> + <param name="minInclusive">1</param> + <param name="maxInclusive">100</param> + <message> + validator.floatlinesComposition.bound.proportion##${minInclusive}##${maxInclusive} + </message> + </field-validator> + + </field> + +</validators> diff --git a/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/HooksCompositionDto-n1-update-error-validation.xml b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/HooksCompositionDto-n1-update-error-validation.xml new file mode 100644 index 0000000..ed4b871 --- /dev/null +++ b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/HooksCompositionDto-n1-update-error-validation.xml @@ -0,0 +1,98 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + #%L + ObServe :: Validation + %% + Copyright (C) 2008 - 2010 IRD, Codelutin, Tony Chemit + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this program. If not, see + <http://www.gnu.org/licenses/gpl-3.0.html>. + #L% + --> + +<!DOCTYPE validators PUBLIC + "-//Apache Struts//XWork Validator 1.0.3//EN" + "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd"> +<validators> + + <field name="hookType"> + + <!-- pas de hookType selectionnee --> + <field-validator type="required" short-circuit="true"> + <message>validator.hooksComposition.required.hookType</message> + </field-validator> + + <!-- hookType desactive --> + <field-validator type="fieldexpression" short-circuit="true"> + <param name="expression"> + <![CDATA[ hookType.enabled ]]> + </param> + <message>validator.hooksComposition.desactivated.hookType</message> + </field-validator> + + </field> + + <field name="hookSize"> + + <!-- pas de hookSize selectionnee --> + <field-validator type="required" short-circuit="true"> + <message>validator.hooksComposition.required.hookSize</message> + </field-validator> + + <!-- hookSize desactive --> + <field-validator type="fieldexpression" short-circuit="true"> + <param name="expression"> + <![CDATA[ hookSize.enabled ]]> + </param> + <message>validator.hooksComposition.desactivated.hookSize</message> + </field-validator> + + </field> + + <field name="hookOffset"> + + <!-- 0 <= totalSectionsCount <= 100 --> + <field-validator type="fieldexpressionwithparams" short-circuit="true"> + <param name="intParams">min:0|max:45</param> + <param name="expression"><![CDATA[ + hookOffset == null || (ints.min <= hookOffset && hookOffset <= ints.max) + ]]> + </param> + <message> + validator.hooksComposition.bound.hookOffset##${ints.min}##${ints.max} + </message> + </field-validator> + + + </field> + + <field name="proportion"> + + <!-- pas de proportion renseigne --> + <field-validator type="required" short-circuit="true"> + <message>validator.hooksComposition.required.proportion</message> + </field-validator> + + <!-- 1 <= proportion <= 100 --> + <field-validator type="double" short-circuit="true"> + <param name="minInclusive">1</param> + <param name="maxInclusive">100</param> + <message> + validator.hooksComposition.bound.proportion##${minInclusive}##${maxInclusive} + </message> + </field-validator> + + </field> + +</validators> diff --git a/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/SetLonglineGlobalCompositionDto-n1-update-baitsComposition-error-validation.xml b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/SetLonglineGlobalCompositionDto-n1-update-baitsComposition-error-validation.xml new file mode 100644 index 0000000..3705b41 --- /dev/null +++ b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/SetLonglineGlobalCompositionDto-n1-update-baitsComposition-error-validation.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + #%L + ObServe :: Validation + %% + Copyright (C) 2008 - 2014 IRD, Codelutin, Tony Chemit + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this program. If not, see + <http://www.gnu.org/licenses/gpl-3.0.html>. + #L% + --> + +<!DOCTYPE validators PUBLIC + "-//Apache Struts//XWork Validator 1.0.3//EN" + "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd"> +<validators> + + <field name="baitsComposition"> + + <!-- clef d'unicité --> + + <field-validator type="collectionFieldExpression"> + <param name="mode">UNIQUE_KEY</param> + <param name="keys">baitType,baitSettingStatus,individualSize,individualWeight</param> + <message>validator.setLongline.baitsComposition.uniqueKey</message> + </field-validator> + + </field> + + <!-- baitsCompositionProportionSum == 100 si > 0 --> + <field name="baitsCompositionProportionSum"> + + <field-validator type="fieldexpression" short-circuit="true"> + <param name="expression"> + <![CDATA[ baitsCompositionProportionSum == 0 || baitsCompositionProportionSum == 100 ]]> + </param> + <message>validator.setLongline.bad.baitsCompositionProportionSum</message> + </field-validator> + + </field> + +</validators> diff --git a/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/SetLonglineGlobalCompositionDto-n1-update-branchlinesComposition-error-validation.xml b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/SetLonglineGlobalCompositionDto-n1-update-branchlinesComposition-error-validation.xml new file mode 100644 index 0000000..fe52561 --- /dev/null +++ b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/SetLonglineGlobalCompositionDto-n1-update-branchlinesComposition-error-validation.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + #%L + ObServe :: Validation + %% + Copyright (C) 2008 - 2014 IRD, Codelutin, Tony Chemit + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this program. If not, see + <http://www.gnu.org/licenses/gpl-3.0.html>. + #L% + --> + +<!DOCTYPE validators PUBLIC + "-//Apache Struts//XWork Validator 1.0.3//EN" + "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd"> +<validators> + + <field name="branchlinesComposition"> + + <!-- clef d'unicité --> + + <field-validator type="collectionFieldExpression"> + <param name="mode">UNIQUE_KEY</param> + <param name="keys">topType,tracelineType,length</param> + <message>validator.setLongline.branchlinesComposition.uniqueKey</message> + </field-validator> + + </field> + + <!-- branchlinesCompositionProportionSum == 100 si > 0 --> + <field name="branchlinesCompositionProportionSum"> + + <field-validator type="fieldexpression" short-circuit="true"> + <param name="expression"> + <![CDATA[ branchlinesCompositionProportionSum == 0 || branchlinesCompositionProportionSum == 100 ]]> + </param> + <message>validator.setLongline.bad.branchlinesCompositionProportionSum</message> + </field-validator> + + </field> + +</validators> diff --git a/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/SetLonglineGlobalCompositionDto-n1-update-floatlinesComposition-error-validation.xml b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/SetLonglineGlobalCompositionDto-n1-update-floatlinesComposition-error-validation.xml new file mode 100644 index 0000000..c18bca1 --- /dev/null +++ b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/SetLonglineGlobalCompositionDto-n1-update-floatlinesComposition-error-validation.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + #%L + ObServe :: Validation + %% + Copyright (C) 2008 - 2014 IRD, Codelutin, Tony Chemit + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this program. If not, see + <http://www.gnu.org/licenses/gpl-3.0.html>. + #L% + --> + +<!DOCTYPE validators PUBLIC + "-//Apache Struts//XWork Validator 1.0.3//EN" + "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd"> +<validators> + + <field name="floatlinesComposition"> + + <!-- clef d'unicité --> + + <field-validator type="collectionFieldExpression"> + <param name="mode">UNIQUE_KEY</param> + <param name="keys">lineType,length</param> + <message>validator.setLongline.floatlinesComposition.uniqueKey</message> + </field-validator> + + </field> + + <!-- floatlinesCompositionProportionSum == 100 si > 0 --> + <field name="floatlinesCompositionProportionSum"> + + <field-validator type="fieldexpression" short-circuit="true"> + <param name="expression"> + <![CDATA[ floatlinesCompositionProportionSum == 0 || floatlinesCompositionProportionSum == 100 ]]> + </param> + <message>validator.setLongline.bad.floatlinesCompositionProportionSum</message> + </field-validator> + + </field> + +</validators> diff --git a/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/SetLonglineGlobalCompositionDto-n1-update-globalComposition-error-validation.xml b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/SetLonglineGlobalCompositionDto-n1-update-globalComposition-error-validation.xml new file mode 100644 index 0000000..e0387a2 --- /dev/null +++ b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/SetLonglineGlobalCompositionDto-n1-update-globalComposition-error-validation.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + #%L + ObServe :: Validation + %% + Copyright (C) 2008 - 2010 IRD, Codelutin, Tony Chemit + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this program. If not, see + <http://www.gnu.org/licenses/gpl-3.0.html>. + #L% + --> + +<!DOCTYPE validators PUBLIC + "-//Apache Struts//XWork Validator 1.0.3//EN" + "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd"> +<validators> + + <field name="comment"> + + <!-- comentaire de moins de 1024 caractères --> + <field-validator type="stringlength"> + <param name="maxLength">1024</param> + <message>validator.activity.comment.tobig</message> + </field-validator> + + </field> + +</validators> diff --git a/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/SetLonglineGlobalCompositionDto-n1-update-hooksComposition-error-validation.xml b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/SetLonglineGlobalCompositionDto-n1-update-hooksComposition-error-validation.xml new file mode 100644 index 0000000..deb0e8a --- /dev/null +++ b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/longline/SetLonglineGlobalCompositionDto-n1-update-hooksComposition-error-validation.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + #%L + ObServe :: Validation + %% + Copyright (C) 2008 - 2014 IRD, Codelutin, Tony Chemit + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this program. If not, see + <http://www.gnu.org/licenses/gpl-3.0.html>. + #L% + --> + +<!DOCTYPE validators PUBLIC + "-//Apache Struts//XWork Validator 1.0.3//EN" + "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd"> +<validators> + + <field name="hooksComposition"> + + <!-- clef d'unicité --> + + <field-validator type="collectionFieldExpression"> + <param name="mode">UNIQUE_KEY</param> + <param name="keys">hookType,hookSize,hookOffset</param> + <message>validator.setLongline.hooksComposition.uniqueKey</message> + </field-validator> + + </field> + + <!-- hooksCompositionProportionSum == 100 si > 0 --> + <field name="hooksCompositionProportionSum"> + + <field-validator type="fieldexpression" short-circuit="true"> + <param name="expression"> + <![CDATA[ hooksCompositionProportionSum == 0 || hooksCompositionProportionSum == 100 ]]> + </param> + <message>validator.setLongline.bad.hooksCompositionProportionSum</message> + </field-validator> + + </field> + +</validators> -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.