com.orchestranetworks.schema
Interface SchemaExtensions


public interface SchemaExtensions

Defines extensions to a schema.

Schema definition

The extensions class must be declared under the element xs:schema/xs:annotation/xs:appinfo:

 <xs:schema ...>
   ...
   <xs:annotation>
     <xs:appinfo>
       <osd:extensions class="com.foo.ExtensionsForMyDomain"/>
       ...
     </xs:appinfo>
   </xs:annotation>
   ...
 </xs:schema>
where com.foo.ExtensionsForMyDomain is the fully qualified name of the class implementing this interface. It is also possible to set additional JavaBean properties, for more information read JavaBeans specification.

Life cycle:

At the end of schema validation:

  1. the concrete class specified (in the example above, com.foo.ExtensionsForMyDomain) is instantiated through its default constructor;
  2. if additional XML elements are declared, the JavaBean properties' setters corresponding to the XML elements are called;
  3. the method defineExtensions(SchemaExtensionsContext) is called, so that the implementation performs the specific setups.


Method Summary
 void defineExtensions(SchemaExtensionsContext aContext)
           
 

Method Detail

defineExtensions

public void defineExtensions(SchemaExtensionsContext aContext)


(report a bug)
EBX.Platform 4.5.0 [0598]
Copyright Orchestra Networks 2000-2008. All rights reserved.