The Talon Manual

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
<!-- Defines semantic types that can be referenced elsewhere in the model in place -->
<types>
	<type name="SocialSecurityNumber" base="String" length="12" poolable="true">
            doc="Represents a social security number in the format xxx-xx-xxxx">
            <documentation>
          <![CDATA[
            Detailed information about social security numbers can be found at the <a href="http://www.ssa.gov/">Social Security Website</a>. 
          ]]>
        </documentation>
    </type>
	<type name="Salary" base="float" doc="Represents a salary in US dollars."/>
<types></types>

<fields>
	<field name="ssn" type="SocialSecurityNumber" id="1"/>
	<field name="salary" type="Salary" id="2"/>
</fields>
 
<messages>
	<message name="EmployeeSalarayUpdateMessage" factoryid="1" id="1">
    	<fieldRef ref="ssn" required="true" />
    	<fieldRef ref="salary" required="true" />
	</message>
</messages>

...