Difference between revisions of "Template (extension point)"

From BioUML platform
Jump to: navigation, search
m (Formatting)
(Formatting - Examples)
Line 41: Line 41:
 
  <extension id="Base template" point="ru.biosoft.templates.template">
 
  <extension id="Base template" point="ru.biosoft.templates.template">
 
     <template  
 
     <template  
name="Default"  
+
        name="Default"  
file="resources/beaninfotemplate.vm"  
+
        file="resources/beaninfotemplate.vm"  
description="Universal bean template"  
+
        description="Universal bean template"  
isBrief="no"  
+
        isBrief="no"  
order="1"
+
        order="1"
 
     />
 
     />
 
  </extension>
 
  </extension>

Revision as of 17:08, 13 May 2013

Identifier
ru.biosoft.templates.template
Plugin
ru.biosoft.templates
Since
0.8.7
Registry
TemplateRegistry

Description

Templates allows to get different view for data element description. BioUML supports Apache Velocity (.vm) templates for this purpose.

Configuration Markup

<!ELEMENT template (filter)*>
 <!ATTLIST template
    name               CDATA    #REQUIRED
    file               CDATA    #REQUIRED
    description        CDATA
    isBrief            CDATA	
    order              CDATA
>
name
name of template.
file
path to velocity(.vm) template.
description
template description.
isBrief
indicates whether template is brief
order
template order in templates list
<!ELEMENT filter>
<!ATTLIST filter
  class              CDATA    #REQUIRED
  subclasses         CDATA
>
class
data element class supported by this template
subclasses
indicates if template is allowed for subclasses

Examples

Base template description as example:

<extension id="Base template" point="ru.biosoft.templates.template">
   <template 
       name="Default" 
       file="resources/beaninfotemplate.vm" 
       description="Universal bean template" 
       isBrief="no" 
       order="1"
   />
</extension>
Personal tools
Namespaces

Variants
Actions
BioUML platform
Community
Modelling
Analysis & Workflows
Collaborative research
Development
Virtual biology
Wiki
Toolbox