about us      downloads      documentation      contact      home 
 products
 antHR
 workflow studio
 technical toolkits
 content entry
 workflow
 security
 hierarchy
 concepts
 how tos
 reference
 FAQs
 next: Define converter

How to: Create new converter

  Step 1 : Summary
  Step 2 : Define converter
  Step 3 : Test class
  Step 4 : Test application
  Step 5 : Add validation
  Step 6 : Add config
  Step 7 : Test config

Create a new converter to handle custom data types or complex validation. - (page 1 of 7)

Level: developer
Required reading: Defining content, Class markup

Converters define how take information from a displayer and map them to and from .net types.

A converter is defined by using a .net class which implements the Ant.ContentEntry.Converter interface. Once defined it can be used directly in a class marked up for content entry.
If it is required in the content definition dialog, a Ant.ContentEntry.TypeFactory must be declared and registered.

In this how to we will make a converter which only accepts integers which are divisible by 3.


 

Did you find this article helpful? Comments on this page are welcome and can only help us improve the quality of our documentation.
© Ant Organisation Ltd, 2003