<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.biouml.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.biouml.org/index.php?action=history&amp;feed=atom&amp;title=Document_factory_%28extension_point%29</id>
		<title>Document factory (extension point) - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.biouml.org/index.php?action=history&amp;feed=atom&amp;title=Document_factory_%28extension_point%29"/>
		<link rel="alternate" type="text/html" href="https://wiki.biouml.org/index.php?title=Document_factory_(extension_point)&amp;action=history"/>
		<updated>2026-04-12T23:40:17Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.3</generator>

	<entry>
		<id>https://wiki.biouml.org/index.php?title=Document_factory_(extension_point)&amp;diff=5148&amp;oldid=prev</id>
		<title>Lan@dote.ru: Created page with &quot;{{Extension point|documentFactory|ru.biosoft.workbench}} ;Applicable for :BioUML workbench === Description === This extension points configures document type in [[BioUML w...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.biouml.org/index.php?title=Document_factory_(extension_point)&amp;diff=5148&amp;oldid=prev"/>
				<updated>2013-08-26T06:35:41Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Extension point|documentFactory|ru.biosoft.workbench}} ;Applicable for :&lt;a href=&quot;/index.php/BioUML_workbench&quot; title=&quot;BioUML workbench&quot;&gt;BioUML workbench&lt;/a&gt; === Description === This extension points configures document type in [[BioUML w...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Extension point|documentFactory|ru.biosoft.workbench}}&lt;br /&gt;
;Applicable for&lt;br /&gt;
:[[BioUML workbench]]&lt;br /&gt;
=== Description ===&lt;br /&gt;
This extension points configures document type in [[BioUML workbench]].&lt;br /&gt;
&lt;br /&gt;
=== Configuration Markup ===&lt;br /&gt;
 &amp;lt;!ELEMENT documentFactory&amp;gt;&lt;br /&gt;
 &amp;lt;!ATTLIST documentFactory&lt;br /&gt;
      key           CDATA #REQUIRED&lt;br /&gt;
      documentClass CDATA #IMPLIED &lt;br /&gt;
      class         CDATA #IMPLIED&lt;br /&gt;
 &amp;gt;&lt;br /&gt;
&lt;br /&gt;
;key&lt;br /&gt;
:Fully qualified name of the class implementing {{Class|ru.biosoft.access.DataElement}} interface. Registered document type will be used for elements of given class.&lt;br /&gt;
;documentClass&lt;br /&gt;
:(since 0.9.6) Fully qualified name of the class extending {{Class|ru.biosoft.gui.Document}} abstract class. This class is the implementation of the document itself.&lt;br /&gt;
;class&lt;br /&gt;
:Fully qualified name of the class implementing {{Class|com.developmentontheedge.application.DocumentFactory}} interface. This class should create {{Class|ru.biosoft.gui.Document}} instances in {{Method|com.developmentontheedge.application.DocumentFactory.openDocument}} method.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
 &amp;lt;extension id=&amp;quot;TreeTable document factory&amp;quot; point=&amp;quot;ru.biosoft.workbench.documentFactory&amp;quot;&amp;gt; &lt;br /&gt;
      &amp;lt;documentFactory &lt;br /&gt;
        documentClass=&amp;quot;ru.biosoft.treetable.TreeTableDocument&amp;quot;&lt;br /&gt;
        key=&amp;quot;ru.biosoft.treetable.TreeTableElement&amp;quot;&lt;br /&gt;
      /&amp;gt; &lt;br /&gt;
 &amp;lt;/extension&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This extension specifies that {{Type link|tree-table}}s will be displayed via {{Class|ru.biosoft.treetable.TreeTableDocument}}.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;extension id=&amp;quot;table document factory&amp;quot; point=&amp;quot;ru.biosoft.workbench.documentFactory&amp;quot;&amp;gt; &lt;br /&gt;
     &amp;lt;documentFactory &lt;br /&gt;
       class=&amp;quot;ru.biosoft.table.document.TableFactory&amp;quot;&lt;br /&gt;
       key=&amp;quot;ru.biosoft.table.TableDataCollection&amp;quot;&lt;br /&gt;
     /&amp;gt; &lt;br /&gt;
 &amp;lt;/extension&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This extension specifies that {{Type link|table}}s will be displayed using {{Class|ru.biosoft.table.document.TableFactory}} factory.&lt;br /&gt;
&lt;br /&gt;
=== API information ===&lt;br /&gt;
You must use either &amp;lt;code&amp;gt;documentClass&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;class&amp;lt;/code&amp;gt; attribute. If &amp;lt;code&amp;gt;documentClass&amp;lt;/code&amp;gt; is specified, then {{Class|ru.biosoft.gui.DefaultDocumentFactory}} will be used as factory. If this factory doesn't satisfy your needs (for example, you may want to produce documents of different class), you should create your own factory.&lt;br /&gt;
&lt;br /&gt;
Classes implementing {{Class|com.developmentontheedge.application.DocumentFactory}} interface must have default constructor. Classes extending {{Class|ru.biosoft.gui.Document}} must have constructor taking one argument of the type specified in &amp;lt;code&amp;gt;key&amp;lt;/code&amp;gt; property.&lt;/div&gt;</summary>
		<author><name>Lan@dote.ru</name></author>	</entry>

	</feed>