Author: chatellier Date: 2010-10-26 14:16:24 +0000 (Tue, 26 Oct 2010) New Revision: 105 Log: Move data beans to their own data package Added: trunk/coser-business/src/main/resources/fr/ifremer/coser/data/ trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Catch-error-validation.xml trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Catch-warning-validation.xml trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Haul-error-validation.xml trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Length-error-validation.xml trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Strata-error-validation.xml Removed: trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Catch-error-validation.xml trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Catch-warning-validation.xml trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Haul-error-validation.xml trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Length-error-validation.xml trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Strata-error-validation.xml Deleted: trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Catch-error-validation.xml =================================================================== --- trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Catch-error-validation.xml 2010-10-26 14:08:45 UTC (rev 104) +++ trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Catch-error-validation.xml 2010-10-26 14:16:24 UTC (rev 105) @@ -1,65 +0,0 @@ -<!-- - #%L - Coser :: UI - - $Id$ - $HeadURL$ - %% - Copyright (C) 2010 Ifremer, Codelutin - %% - This program 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 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 Lesser Public License for more details. - - You should have received a copy of the GNU General Lesser Public - License along with this program. If not, see - <http://www.gnu.org/licenses/lgpl-3.0.html>. - #L% - --> -<!DOCTYPE validators PUBLIC - "-//OpenSymphony Group//XWork Validator 1.0.2//EN" - "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd"> -<validators> - <field name="survey"> - <field-validator type="requiredstring"> - <param name="trim">true</param> - <message>You must enter a campagne name.</message> - </field-validator> - </field> - <field name="year"> - <field-validator type="requiredstring"> - <param name="trim">true</param> - <message>You must enter a espece name.</message> - </field-validator> - </field> - <field name="haul"> - <field-validator type="requiredstring"> - <param name="trim">true</param> - <message>You must enter a trait name.</message> - </field-validator> - </field> - <field name="species"> - <field-validator type="requiredstring"> - <param name="trim">true</param> - <message>You must enter a espece name.</message> - </field-validator> - </field> - <field name="number"> - <field-validator type="checkDouble" short-circuit="true"> - <param name="notAvailable">NA</param> - <message>Number attribute is not a valid double</message> - </field-validator> - </field> - <field name="weight"> - <field-validator type="checkDouble" short-circuit="true"> - <param name="notAvailable">NA</param> - <message>Weight attribute is not a valid double</message> - </field-validator> - </field> -</validators> \ No newline at end of file Deleted: trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Catch-warning-validation.xml =================================================================== --- trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Catch-warning-validation.xml 2010-10-26 14:08:45 UTC (rev 104) +++ trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Catch-warning-validation.xml 2010-10-26 14:16:24 UTC (rev 105) @@ -1,36 +0,0 @@ -<!-- - #%L - Coser :: UI - - $Id$ - $HeadURL$ - %% - Copyright (C) 2010 Ifremer, Codelutin - %% - This program 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 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 Lesser Public License for more details. - - You should have received a copy of the GNU General Lesser Public - License along with this program. If not, see - <http://www.gnu.org/licenses/lgpl-3.0.html>. - #L% - --> -<!DOCTYPE validators PUBLIC - "-//OpenSymphony Group//XWork Validator 1.0.2//EN" - "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd"> -<validators> - <field name="weight"> - <field-validator type="coserDouble"> - <param name="min">0</param> - <param name="max">999</param> - <message>Weight n'est pas compris entre ${min} en ${max}</message> - </field-validator> - </field> -</validators> \ No newline at end of file Deleted: trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Haul-error-validation.xml =================================================================== --- trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Haul-error-validation.xml 2010-10-26 14:08:45 UTC (rev 104) +++ trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Haul-error-validation.xml 2010-10-26 14:16:24 UTC (rev 105) @@ -1,74 +0,0 @@ -<!-- - #%L - Coser :: UI - - $Id$ - $HeadURL$ - %% - Copyright (C) 2010 Ifremer, Codelutin - %% - This program 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 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 Lesser Public License for more details. - - You should have received a copy of the GNU General Lesser Public - License along with this program. If not, see - <http://www.gnu.org/licenses/lgpl-3.0.html>. - #L% - --> -<!DOCTYPE validators PUBLIC - "-//OpenSymphony Group//XWork Validator 1.0.2//EN" - "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd"> -<validators> - <field name="survey"> - <field-validator type="requiredstring"> - <message>You must enter a survey name.</message> - </field-validator> - </field> - <field name="year"> - <field-validator type="requiredstring"> - <message>You must enter a year name.</message> - </field-validator> - </field> - <field name="haul"> - <field-validator type="requiredstring"> - <message>You must enter a haul name.</message> - </field-validator> - </field> - <field name="month"> - <field-validator type="requiredstring"> - <message>You must enter a month name.</message> - </field-validator> - </field> - <field name="stratum"> - <field-validator type="requiredstring"> - <message>You must enter a stratum name.</message> - </field-validator> - </field> - <field name="sweptSurface"> - <field-validator type="requiredstring"> - <message>You must enter a sweptSurface name.</message> - </field-validator> - </field> - <field name="lat"> - <field-validator type="checkDouble" short-circuit="true"> - <message>lat attribute is not a valid double</message> - </field-validator> - </field> - <field name="long"> - <field-validator type="checkDouble" short-circuit="true"> - <message>long attribute is not a valid double</message> - </field-validator> - </field> - <field name="depth"> - <field-validator type="checkDouble" short-circuit="true"> - <message>Depth attribute is not a valid double</message> - </field-validator> - </field> -</validators> \ No newline at end of file Deleted: trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Length-error-validation.xml =================================================================== --- trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Length-error-validation.xml 2010-10-26 14:08:45 UTC (rev 104) +++ trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Length-error-validation.xml 2010-10-26 14:16:24 UTC (rev 105) @@ -1,85 +0,0 @@ -<!-- - #%L - Coser :: UI - - $Id$ - $HeadURL$ - %% - Copyright (C) 2010 Ifremer, Codelutin - %% - This program 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 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 Lesser Public License for more details. - - You should have received a copy of the GNU General Lesser Public - License along with this program. If not, see - <http://www.gnu.org/licenses/lgpl-3.0.html>. - #L% - --> -<!DOCTYPE validators PUBLIC - "-//OpenSymphony Group//XWork Validator 1.0.2//EN" - "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd"> -<validators> - <field name="survey"> - <field-validator type="requiredstring"> - <param name="trim">true</param> - <message>You must enter a campagne name.</message> - </field-validator> - </field> - <field name="year"> - <field-validator type="requiredstring"> - <param name="trim">true</param> - <message>You must enter a espece name.</message> - </field-validator> - </field> - <field name="haul"> - <field-validator type="requiredstring"> - <param name="trim">true</param> - <message>You must enter a trait name.</message> - </field-validator> - </field> - <field name="species"> - <field-validator type="requiredstring"> - <param name="trim">true</param> - <message>You must enter a espece name.</message> - </field-validator> - </field> - <field name="sex"> - <field-validator type="requiredstring" short-circuit="true"> - <message>Sex is mandatory</message> - </field-validator> - </field> - <field name="maturity"> - <field-validator type="requiredstring" short-circuit="true"> - <message>Maturity attribute is required</message> - </field-validator> - </field> - <field name="length"> - <field-validator type="checkDouble" short-circuit="true"> - <message>length attribute is not a valid double</message> - </field-validator> - </field> - <field name="number"> - <field-validator type="checkDouble" short-circuit="true"> - <param name="notAvailable">NA</param> - <message>number attribute is not a valid double</message> - </field-validator> - </field> - <field name="weight"> - <field-validator type="checkDouble" short-circuit="true"> - <param name="notAvailable">NA</param> - <message>Weight attribute is not a valid double</message> - </field-validator> - </field> - <field name="age"> - <field-validator type="requiredstring" short-circuit="true"> - <message>Age attribute is required</message> - </field-validator> - </field> -</validators> \ No newline at end of file Deleted: trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Strata-error-validation.xml =================================================================== --- trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Strata-error-validation.xml 2010-10-26 14:08:45 UTC (rev 104) +++ trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Strata-error-validation.xml 2010-10-26 14:16:24 UTC (rev 105) @@ -1,47 +0,0 @@ -<!-- - #%L - Coser :: UI - - $Id$ - $HeadURL$ - %% - Copyright (C) 2010 Ifremer, Codelutin - %% - This program 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 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 Lesser Public License for more details. - - You should have received a copy of the GNU General Lesser Public - License along with this program. If not, see - <http://www.gnu.org/licenses/lgpl-3.0.html>. - #L% - --> -<!DOCTYPE validators PUBLIC - "-//OpenSymphony Group//XWork Validator 1.0.2//EN" - "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd"> -<validators> - <field name="survey"> - <field-validator type="requiredstring"> - <param name="trim">true</param> - <message>You must enter a campagne name.</message> - </field-validator> - </field> - <field name="stratum"> - <field-validator type="requiredstring"> - <param name="trim">true</param> - <message>You must enter a strata name.</message> - </field-validator> - </field> - <field name="surface"> - <field-validator type="requiredstring"> - <param name="trim">true</param> - <message>You must enter a trait name.</message> - </field-validator> - </field> -</validators> \ No newline at end of file Copied: trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Catch-error-validation.xml (from rev 101, trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Catch-error-validation.xml) =================================================================== --- trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Catch-error-validation.xml (rev 0) +++ trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Catch-error-validation.xml 2010-10-26 14:16:24 UTC (rev 105) @@ -0,0 +1,65 @@ +<!-- + #%L + Coser :: UI + + $Id$ + $HeadURL$ + %% + Copyright (C) 2010 Ifremer, Codelutin + %% + This program 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 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 Lesser Public License for more details. + + You should have received a copy of the GNU General Lesser Public + License along with this program. If not, see + <http://www.gnu.org/licenses/lgpl-3.0.html>. + #L% + --> +<!DOCTYPE validators PUBLIC + "-//OpenSymphony Group//XWork Validator 1.0.2//EN" + "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd"> +<validators> + <field name="survey"> + <field-validator type="requiredstring"> + <param name="trim">true</param> + <message>You must enter a campagne name.</message> + </field-validator> + </field> + <field name="year"> + <field-validator type="requiredstring"> + <param name="trim">true</param> + <message>You must enter a espece name.</message> + </field-validator> + </field> + <field name="haul"> + <field-validator type="requiredstring"> + <param name="trim">true</param> + <message>You must enter a trait name.</message> + </field-validator> + </field> + <field name="species"> + <field-validator type="requiredstring"> + <param name="trim">true</param> + <message>You must enter a espece name.</message> + </field-validator> + </field> + <field name="number"> + <field-validator type="checkDouble" short-circuit="true"> + <param name="notAvailable">NA</param> + <message>Number attribute is not a valid double</message> + </field-validator> + </field> + <field name="weight"> + <field-validator type="checkDouble" short-circuit="true"> + <param name="notAvailable">NA</param> + <message>Weight attribute is not a valid double</message> + </field-validator> + </field> +</validators> \ No newline at end of file Copied: trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Catch-warning-validation.xml (from rev 82, trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Catch-warning-validation.xml) =================================================================== --- trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Catch-warning-validation.xml (rev 0) +++ trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Catch-warning-validation.xml 2010-10-26 14:16:24 UTC (rev 105) @@ -0,0 +1,36 @@ +<!-- + #%L + Coser :: UI + + $Id$ + $HeadURL$ + %% + Copyright (C) 2010 Ifremer, Codelutin + %% + This program 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 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 Lesser Public License for more details. + + You should have received a copy of the GNU General Lesser Public + License along with this program. If not, see + <http://www.gnu.org/licenses/lgpl-3.0.html>. + #L% + --> +<!DOCTYPE validators PUBLIC + "-//OpenSymphony Group//XWork Validator 1.0.2//EN" + "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd"> +<validators> + <field name="weight"> + <field-validator type="coserDouble"> + <param name="min">0</param> + <param name="max">999</param> + <message>Weight n'est pas compris entre ${min} en ${max}</message> + </field-validator> + </field> +</validators> \ No newline at end of file Copied: trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Haul-error-validation.xml (from rev 82, trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Haul-error-validation.xml) =================================================================== --- trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Haul-error-validation.xml (rev 0) +++ trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Haul-error-validation.xml 2010-10-26 14:16:24 UTC (rev 105) @@ -0,0 +1,74 @@ +<!-- + #%L + Coser :: UI + + $Id$ + $HeadURL$ + %% + Copyright (C) 2010 Ifremer, Codelutin + %% + This program 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 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 Lesser Public License for more details. + + You should have received a copy of the GNU General Lesser Public + License along with this program. If not, see + <http://www.gnu.org/licenses/lgpl-3.0.html>. + #L% + --> +<!DOCTYPE validators PUBLIC + "-//OpenSymphony Group//XWork Validator 1.0.2//EN" + "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd"> +<validators> + <field name="survey"> + <field-validator type="requiredstring"> + <message>You must enter a survey name.</message> + </field-validator> + </field> + <field name="year"> + <field-validator type="requiredstring"> + <message>You must enter a year name.</message> + </field-validator> + </field> + <field name="haul"> + <field-validator type="requiredstring"> + <message>You must enter a haul name.</message> + </field-validator> + </field> + <field name="month"> + <field-validator type="requiredstring"> + <message>You must enter a month name.</message> + </field-validator> + </field> + <field name="stratum"> + <field-validator type="requiredstring"> + <message>You must enter a stratum name.</message> + </field-validator> + </field> + <field name="sweptSurface"> + <field-validator type="requiredstring"> + <message>You must enter a sweptSurface name.</message> + </field-validator> + </field> + <field name="lat"> + <field-validator type="checkDouble" short-circuit="true"> + <message>lat attribute is not a valid double</message> + </field-validator> + </field> + <field name="long"> + <field-validator type="checkDouble" short-circuit="true"> + <message>long attribute is not a valid double</message> + </field-validator> + </field> + <field name="depth"> + <field-validator type="checkDouble" short-circuit="true"> + <message>Depth attribute is not a valid double</message> + </field-validator> + </field> +</validators> \ No newline at end of file Copied: trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Length-error-validation.xml (from rev 101, trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Length-error-validation.xml) =================================================================== --- trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Length-error-validation.xml (rev 0) +++ trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Length-error-validation.xml 2010-10-26 14:16:24 UTC (rev 105) @@ -0,0 +1,85 @@ +<!-- + #%L + Coser :: UI + + $Id$ + $HeadURL$ + %% + Copyright (C) 2010 Ifremer, Codelutin + %% + This program 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 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 Lesser Public License for more details. + + You should have received a copy of the GNU General Lesser Public + License along with this program. If not, see + <http://www.gnu.org/licenses/lgpl-3.0.html>. + #L% + --> +<!DOCTYPE validators PUBLIC + "-//OpenSymphony Group//XWork Validator 1.0.2//EN" + "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd"> +<validators> + <field name="survey"> + <field-validator type="requiredstring"> + <param name="trim">true</param> + <message>You must enter a campagne name.</message> + </field-validator> + </field> + <field name="year"> + <field-validator type="requiredstring"> + <param name="trim">true</param> + <message>You must enter a espece name.</message> + </field-validator> + </field> + <field name="haul"> + <field-validator type="requiredstring"> + <param name="trim">true</param> + <message>You must enter a trait name.</message> + </field-validator> + </field> + <field name="species"> + <field-validator type="requiredstring"> + <param name="trim">true</param> + <message>You must enter a espece name.</message> + </field-validator> + </field> + <field name="sex"> + <field-validator type="requiredstring" short-circuit="true"> + <message>Sex is mandatory</message> + </field-validator> + </field> + <field name="maturity"> + <field-validator type="requiredstring" short-circuit="true"> + <message>Maturity attribute is required</message> + </field-validator> + </field> + <field name="length"> + <field-validator type="checkDouble" short-circuit="true"> + <message>length attribute is not a valid double</message> + </field-validator> + </field> + <field name="number"> + <field-validator type="checkDouble" short-circuit="true"> + <param name="notAvailable">NA</param> + <message>number attribute is not a valid double</message> + </field-validator> + </field> + <field name="weight"> + <field-validator type="checkDouble" short-circuit="true"> + <param name="notAvailable">NA</param> + <message>Weight attribute is not a valid double</message> + </field-validator> + </field> + <field name="age"> + <field-validator type="requiredstring" short-circuit="true"> + <message>Age attribute is required</message> + </field-validator> + </field> +</validators> \ No newline at end of file Copied: trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Strata-error-validation.xml (from rev 82, trunk/coser-business/src/main/resources/fr/ifremer/coser/bean/Strata-error-validation.xml) =================================================================== --- trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Strata-error-validation.xml (rev 0) +++ trunk/coser-business/src/main/resources/fr/ifremer/coser/data/Strata-error-validation.xml 2010-10-26 14:16:24 UTC (rev 105) @@ -0,0 +1,47 @@ +<!-- + #%L + Coser :: UI + + $Id$ + $HeadURL$ + %% + Copyright (C) 2010 Ifremer, Codelutin + %% + This program 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 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 Lesser Public License for more details. + + You should have received a copy of the GNU General Lesser Public + License along with this program. If not, see + <http://www.gnu.org/licenses/lgpl-3.0.html>. + #L% + --> +<!DOCTYPE validators PUBLIC + "-//OpenSymphony Group//XWork Validator 1.0.2//EN" + "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd"> +<validators> + <field name="survey"> + <field-validator type="requiredstring"> + <param name="trim">true</param> + <message>You must enter a campagne name.</message> + </field-validator> + </field> + <field name="stratum"> + <field-validator type="requiredstring"> + <param name="trim">true</param> + <message>You must enter a strata name.</message> + </field-validator> + </field> + <field name="surface"> + <field-validator type="requiredstring"> + <param name="trim">true</param> + <message>You must enter a trait name.</message> + </field-validator> + </field> +</validators> \ No newline at end of file