| applyPattern |
c:invokeTransform |
|
| attr |
c:get |
O atributo de formato da tag attr
não é suportado pela tag c:get. O JET oferece diversas funções
XPath como equivalentes. A seguinte tag DPTK é equivalente à
tag JET: - Tag DPTK - <attr node="child" name="name" format="U"/>
- Tag JET - <c:get select="upper-case($child/@name)"/>
|
| case |
c:when |
Consulte as notas sobre select. |
| cond |
c:if |
A cardinalidade da função XPath interpreta os valores de atributo
de placa da tag cond. - DPTK- <cond node="parent/children" card="m"> ....</cond>
- JET - <c:if test="cardinality($parent/children,'m')"> ....</c:if>
|
| content |
c:get |
Os seguintes são equivalentes:- DPTK - <content node="parent"/>
- JET - <c:get select="$parent"/>
Consulte attr para obter detalhes sobre a conversão do atributo de formato DPTK. |
| copyResource |
ws:copyFile |
Consulte as notas sobre select. |
| exists |
c:if |
Utilize <c:if test=" ... "> ... </c:if>. A tabela a seguir oferece equivalências de formatos <exists> comuns: | <exists node="mother/children"> |
<c:if test="$mother/children"> |
| <exists node="mother/children gender='F'"> |
<c:if test="$mother/children[@gender = 'F']"> |
| <exists node="child gender='F'"> |
<c:if test="$child/@gender = 'F'"> |
| <exists node="person" name="partner"> |
<c:if test="$person/@partner"> |
|
| extend |
c:load |
|
| formatNow |
f:formatNow |
|
| genParm |
Nenhum equivalente direto |
Os parâmetros transmitidos para transformações JET são expostos
como variáveis XPath. |
| include |
c:include |
|
| inlineExtend |
c:loadContent |
|
| initialCode |
c:initialCode |
|
| iterate |
c:iterate |
|
| marker |
c:marker |
|
| milliseconds |
f:milliseconds |
|
| newFolder |
ws:folder |
|
| newNode |
c:addElement |
|
| newProject |
ws:project |
|
| newText |
c:addTextElement |
|
| nexists |
c:if |
Utilize <c:if test="not( ... )"> ...</c:if>.
Consulte a tag exists para obter mais exemplos. |
| nodeAttributes |
Nenhum equivalente direto |
A seguinte instrução c:iterate itera todos os
atributos de um elemento:<c:iterate select="$element/@*" var="attr">
<c:get select="name($attr)"/> = <c:get select="string($attr)"/>
</c:iterate>
|
| overrides |
c:override |
Embora fornecidos, recomenda-se que os usuários utilizem o atributo overrides
do elemento transform em plugin.xml. |
| prune |
c:removeElement |
|
| rebuildWorkspace |
ws:rebuildWorkspace |
Embora fornecida, esta tag geralmente não é necessária por
transformações JET. |
| removeAttr |
nenhum equivalente direto |
|
| replaceStrings |
c:replaceStrings |
|
| roundtrip |
c:userRegion |
|
| select |
c:choose |
O JET oferece dois formatos para a tag <c:choose>. - Um é como a tag DPTK <select>:
<c:choose select="$element/@kind">
<c:when test="'FIELD'">
...
<c:when>
<c:when test="'LIST'">
...
<c:when>
...
</c:choose>
- O JET também possui uma variante if/elseif/else, em que o atributo 'select' de
c:choose é omitido:
<c:choose>
<c:when test="$element/@kind = 'FIELD'">
...
</c:when>
<c:when test="$element/@kind = 'LIST'">
...
</c:when>
<c:otherwise>
...
</c:otherwise>
</c:choose>
|
| setAttr |
c:set |
|
| statusMessage |
c:log |
|
| start |
ws:file ou java:class |
O DPTK inclui silenciosamente uma pasta de origem Java no início do caminho
'resource', se necessário. A tag JET ws:file não.
A tag JET java:class é sensível ao Java e possui um atributo 'srcFolder'. |
| stringTokens |
c:stringTokens |
|
| substring |
Nenhum equivalente direto |
Use a função XPath substring. |
| sum |
Nenhum equivalente direto |
Utilize as seguintes equivalências: | <sum name="xx" initialize="1"/> |
<c:setVariable var="xx" select="1"/> |
| <sum name="xx"/> |
<c:get select="$xx"/> |
| <sum name="xx" increment="2"/> |
<c:setVariable var="xx" select="$xx + 2"/> |
|
| targetProject |
Nenhum equivalente direto |
A variável XPath $org.eclipse.jet.resource.project.name refere-se
ao projeto que contém o recurso de entrada. Todas as tags <ws:...>
aceitarão referências do projeto explícitas nos caminhos. |
| templateComment |
<%-- ... --%> |
|
| unique |
f:unique |
|
| userNode |
c:setVariable |
|
| workingSet |
Não suportado |
O JET não tem tags para criar conjuntos de trabalhos do Eclipse. |
| zilch |
Não suportado |
Utilizado como um mecanismo de escape ou algumas vezes como um comentário.
Altere os espaços de nomes utilizando a diretiva @taglib ou utilize <%--
... --%> para criar comentários. |