Difference between revisions of "Preprocessor (extension point)"

From BioUML platform
Jump to: navigation, search
(From Help&Manual)
 
(Configuration Markup)
 
Line 13: Line 13:
 
:the name of preprocessor.
 
:the name of preprocessor.
 
;class
 
;class
:the fully-qualified name of preprocessor class (must implement {{Class|ru.biosoft.plugins.javascript.Preprocessor}}).
+
:the fully-qualified name of preprocessor class (must implement {{Class|ru.biosoft.plugins.javascript.Preprocessor}} interface).
  
 
=== Example ===
 
=== Example ===

Latest revision as of 10:49, 14 May 2013

Identifier
ru.biosoft.plugins.javascript.preprocessor
Plugin
ru.biosoft.plugins.javascript
Since
0.8.7
Registry
PreprocessorRegistry

[edit] Description

JavaScript preprocessor is used to simplify JavaScript code by using additional blocks and constructions. For example, R preprocessor allows to use R commands in script document directly and it's wraps to JavaScript instructions automatically.

[edit] Configuration Markup

<!ELEMENT preprocessor>
<!ATTLIST preprocessor
   name         CDATA #REQUIRED
   class        CDATA #REQUIRED
>
name
the name of preprocessor.
class
the fully-qualified name of preprocessor class (must implement Preprocessor interface).

[edit] Example

The following is an example of R preprocessor definition:

<extension id="R preprocessor" point="ru.biosoft.plugins.javascript.preprocessor"> 
  <preprocessor 
     name="R script" 
     class="ru.biosoft.plugins.jri.RPreprocessor"
  />
</extension>
Personal tools
Namespaces

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