ILOG JRules User Guide > Integrating Application Data > Reference > Mapping Between XML Schema and Dynamic Classes > The Map Function

The map function is used in the following section to design a dynamic type when its related schema type is known.

If T is a complex type, map(T) represents the dynamic class related to T.

If T is an atomic simple type, map(T) represents its mapped dynamic type following these rules:

  1. If T is a built-in type, the dynamic type is given by XXX.
  2. map (T) = map (base (T)) where base(T) is the direct base simple type of T. For example, suppose we define a simple type MyT as:
<simpleType name="MyT">
  <restriction base="string">
</simpleType>

Hence, map(MyT) = java.lang.String.

The following expression:

class C 
{ 
 [map(MyT)] myField;
}

stands for:

class C
{
  java.lang.String myField;
}

Related Reference

Schema Types
XML Declarations
Schema Related Mark-up in XML Documents
Schema Mapping Limitations