<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="../plugin.xsl" type="text/xsl"?>
<plugin name="Context">
  <object class="org.ow2.isac.plugin.context.SessionObject">
    <params>
      <param name="variables" type="String" />
      <param name="files" type="String" />
      <param name="shared" type="String" />
    </params>
    <help>Defines arbitrary variables with initial values. These variables may be loaded from a Java-style property file or set on plug-in import. Empty value is not supported: setting an empty value to a variable turns to clear the variable itself (it is no longer considered as defined). Similarly, getting a value from an undefined variable returns an empty string value.&#xD;
Any of these variables may be used in any plug-in parameter by referencing the variable through the following expression: ${this context plug-in identifier:variable's name}. Example: ${fooplugin:barvar}</help>
  </object>
  <control name="clear" number="3">
    <params />
    <help>Remove all variable definitions.</help>
  </control>
  <control name="dup" number="4">
    <params>
      <param name="from" type="String" />
      <param name="to" type="String" />
    </params>
    <help>Duplicates a variable into a new variable with the same value.</help>
  </control>
  <control name="load" number="2">
    <params>
      <param name="file" type="String" />
    </params>
    <help>Set variables by loading a property file.</help>
  </control>
  <test name="isdef" number="0">
    <params>
      <param name="variable" type="String" />
    </params>
    <help>Checks that the given variable is defined</help>
  </test>
  <test name="isnotdef" number="1">
    <params>
      <param name="variable" type="String" />
    </params>
    <help>Checks that the given variable is not defined</help>
  </test>
  <control name="set" number="0">
    <params>
      <param name="variable" type="String" />
      <param name="value" type="String" />
    </params>
    <help>Sets a variable's value. Entering an empty value results in clearing the variable.</help>
  </control>
</plugin>

