Template (extension point)

From BioUML platform
Revision as of 17:02, 13 May 2013 by Tagir Valeev (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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