BIN 7L6lT Documentation
Author: Michele Vivoda
Version: 8
Description: "If A is true then also B must be present otherwise no B" with Constraints - Velocity
Created: 2014-09-30
Modified: 2014-12-01
Source:
Edit Bin W3C Schema Json-Schema Java Bean Code Default Value as XML<complexType name='ExampleIfAThenAlsoBOtherwiseNoB' description='"If A is true then also B must be present otherwise no B" with Constraints - Velocity'> <field name='A' minOccurs='1' type='xs:boolean' node='attribute'/> <field name='B' minOccurs='0' type='xs:string' node='attribute'/> <constraint name='If_A_ThenAlsoB_OtherwiseNoB' category='boolean' selector='.'> <expression grammar='velocity' path='#if(($value.A=='true' && !$value.B) || !($value.A=='true' || $value.B)) true #end' /> </constraint> </complexType>
application/xml //efbin.org/osk/7L6lT //efbin.org/bin/7L6lT Eleusoft ARIA