com.softwareag.mdm.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>
       <mdm: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)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.