| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <beanInfos> |
| <validator id="standard" java="org.apache.bval.routines.NOPValidation" |
| jsFunction="noop"/> |
| <validator id="email" java="org.apache.bval.routines.EMailValidation"/> |
| <bean id="org.apache.bval.example.BusinessObject" |
| impl="org.apache.bval.example.BusinessObject"> |
| <feature key="mainKey"> |
| <value class="string">userId</value> |
| </feature> |
| <feature key="DOMAIN"> |
| <value class="string">TestObjects</value> |
| </feature> |
| <feature key="WIDGET"> |
| <value class="string">entry</value> |
| </feature> |
| <property name="userId" mandatory="true"/> |
| <property name="firstName" mandatory="true" maxLength="100"/> |
| <property name="lastName" mandatory="true" maxLength="100"/> |
| <property name="title" mandatory="false" maxLength="10"/> |
| <property timeLag="PAST" name="dateBirth" mandatory="false"/> |
| <property timeLag="FUTURE" name="validTo" mandatory="false"/> |
| <property name="email"> |
| <feature key="WIDGET"> |
| <value class="string">entry</value> |
| </feature> |
| <feature key="TABLE_COLUMN"> |
| <value class="boolean">true</value> |
| </feature> |
| <feature key="ajax-formatter"> |
| <value class="map"> |
| <entry> |
| <string>locale</string> |
| <string>DE</string> |
| </entry> |
| <entry> |
| <string>style</string> |
| <string>info</string> |
| </entry> |
| </value> |
| </feature> |
| <validator refId="email"/> |
| <validator refId="standard"/> |
| </property> |
| <relationship beanId="org.apache.bval.example.Address" name="address" mandatory="false" |
| displayName="UserAddress"/> |
| <relationship beanId="org.apache.bval.example.Address" name="addresses" maxLength="3"/> |
| </bean> |
| <bean id="org.apache.bval.example.Address" |
| impl="org.apache.bval.example.BusinessObjectAddress"> |
| <feature key="DOMAIN"> |
| <value class="string">TestObjects</value> |
| </feature> |
| <property name="city"/> |
| <property name="country" mandatory="true" maxLength="10"/> |
| <relationship name="owner" beanId="org.apache.bval.example.BusinessObject" |
| mandatory="true"/> |
| </bean> |
| </beanInfos> |