The Reference validation validates whether the reference to another BTT Object (for example: type and kColl) exists or not. There are three types of Reference validation: validation within a file, validation among many files, and the mix of the two.
To validate reference, do the following:
<?xml version="1.0" encoding="UTF-8"?> <dsetype.xml xmlns="http://www.ibm.com/btt/dse"> <type id="String" implClass="java.util.ArrayList"> <StirngDescriptor id="typeDefault"> <param id="initialValue" value="null"/> <Converter implClass="com.ibm.btt.base.types.ext.StringValidator"/> </StringDescriptor> </type> <type id="Account" implClass="java.util.ArrayList"> <descriptor id="typeDefault" implClass="com.ibm.btt.base.types.KCollPropertyDescriptor"/> <dataDescriptor id="name" refType="Stirng_Error"/> <dataDescriptor id="type" refType="String"/> <dataDescriptor id="number" refType="Sting"/> </type> </dsetype.xml>
ID unique validation is to validate whether each element is unique within the namespace. It is also semantic validation.
<?xml version="1.0" encoding="UFT-8"?> <dsetype.xml xmlns="http://www.ibm.com/btt"> <type id="String" implClass="java.util.ArrayList"> <StringDescriptor id="typeDefault"> <param id="initialValue" value="null"/> <Converter convTypes="default" implClass="com.ibm.btt.base.types.ext.StringConverter"/> <Validator implClass="com.ibm.btt.base.types.ext.StringValidator"/> </StringDescriptor> <dataDescriptor id="number" refType="String"/> </type> <type id="Account" implClass="java.util.ArrayList"> <descriptor id="typeDefault" implClass="com.ibm.btt.base.types.KCollPropertyDescriptor"/> <dataDescriptor id="name" refType="String"/> <dataDescriptor id="type" refType="String"/> <dataDescriptor id="number" refType="String"/> <dataDescriptor id="name" refType="String"/> <dataDescriptor id="type" refType="String"/> <dataDescriptor id="number" refType="String"/> </type> <type id="Account_test" implClass="java.util.ArraryList"> <descriptor id="typeDefault" implClass="com.ibm.btt.base.types.KCollPropertyDescriptor"/> <dataDescriptor id="name" refType="String"/> <dataDescriptor id="type" refType="String"/> <dataDescriptor id="number" reType="String"/> </type> </dsetype.xml>