Package com.orchestranetworks.schema


package com.orchestranetworks.schema
Represents XML Schema concepts and provides schema extensions capabilities.

Specification of JavaBeans

Some EBX® extensions rely on specific Java classes. This is the case for :

The declaration syntax of all those extensions allow to specify JavaBeans properties within the schema. For example :

 <osd:xyz class="com.test.MyJavaBean">
         <param1>value of param1</param1>
         <param2>value of param2</param2>
 </osd:xyz>

Here param1 and param2 are JavaBean properties. It implies that :

  1. The class com.test.MyJavaBean is public and its constructor com.test.MyJavaBean() is defined and public.
  2. The property setters setParam1(...) and setParam2(...)) are defined and public (optional BeanInfo class and its property descriptors will be ignored).

Type conversion

The conversion of the string specified for each property is done according to the type of the JavaBean property. The following types are supported :

Localized properties

EBX® adds the possibility to localize a property, by means of attribute xml:lang. For example :

 <osd:xyz class="com.test.MyJavaBean">
         <param1 xml:lang="en" >value of param1</param1>
         <param1 xml:lang="fr" >valeur de param1</param1>
 </osd:xyz>

Here param1 is a localized "JavaBean property". It implies that the method setParam1(Locale, aType) is defined and public (optional BeanInfo class and its property descriptors will be always ignored).