TransformContext
<p><strong>简要描述:</strong> </p>
<ul>
<li>com.seeyon.v3x.dee.TransformContext</li>
<li>转换上下文</li>
<li>用于整个DEE任务生命周期中传递数据</li>
</ul>
<p>如何获取上下文,例子:</p>
<pre><code>document.getContext();//可以获取当前DEE任务的转换上下文</code></pre>
<p><strong>方法列表</strong> </p>
<table>
<thead>
<tr>
<th>方法名称</th>
<th>方法简介</th>
</tr>
</thead>
<tbody>
<tr>
<td>void setAttribute(String name, Object object)</td>
<td>向当前DEE任务的转换上下文中添加属性</td>
</tr>
<tr>
<td>Object getAttribute(String name)</td>
<td>根据名称获取当前DEE任务转换上下文中的属性值</td>
</tr>
<tr>
<td>Parameters getParameters()</td>
<td>获取当前DEE任务的参数容器</td>
</tr>
</tbody>
</table>
<hr />
<p><strong>方法签名:</strong> </p>
<p><code>void setAttribute(String name, Object object)</code></p>
<p><strong>简要描述:</strong> </p>
<ul>
<li>向当前DEE任务的转换上下文中添加属性</li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">String</td>
<td style="text-align: left;">属性名称</td>
</tr>
<tr>
<td style="text-align: left;">object</td>
<td style="text-align: left;">Object</td>
<td style="text-align: left;">属性值</td>
</tr>
</tbody>
</table>
<p><strong>返回值说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">void</td>
<td style="text-align: left;">没有返回值</td>
</tr>
</tbody>
</table>
<p><strong>使用例子</strong></p>
<pre><code>document.getContext().setAttribute(&quot;MyData&quot;,&quot;hello world&quot;);//向当前任务的转换上下文中添加了一个名称为“MyData”的属性,值为“hello world”</code></pre>
<p><strong>备注</strong> </p>
<ul>
<li>无</li>
</ul>
<hr />
<p><strong>方法签名:</strong> </p>
<p><code>Object getAttribute(String name)</code></p>
<p><strong>简要描述:</strong> </p>
<ul>
<li>根据名称获取当前DEE任务转换上下文中的属性值</li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">String</td>
<td style="text-align: left;">属性名称</td>
</tr>
</tbody>
</table>
<p><strong>返回值说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">Object</td>
<td style="text-align: left;">属性值</td>
</tr>
</tbody>
</table>
<p><strong>使用例子</strong></p>
<pre><code>document.getContext().getAttribute(&quot;MyData&quot;);//获取当前DEE任务的转换上下文中名称为“MyData”的属性的值</code></pre>
<p><strong>备注</strong> </p>
<ul>
<li>无</li>
</ul>
<hr />
<p><strong>方法签名:</strong> </p>
<p><code>Parameters getParameters()</code></p>
<p><strong>简要描述:</strong> </p>
<ul>
<li>获取当前DEE任务的参数容器</li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">无</td>
<td style="text-align: left;"></td>
</tr>
</tbody>
</table>
<p><strong>返回值说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">com.seeyon.v3x.dee.Parameters</td>
<td style="text-align: left;">参数容器,当前DEE任务的所有参数都在该容器中</td>
</tr>
</tbody>
</table>
<p><strong>使用例子</strong></p>
<pre><code>document.getContext().getParameters();//获取当前DEE任务的参数容器</code></pre>
<p><strong>备注</strong> </p>
<ul>
<li>无</li>
</ul>