Skip to main content
summaryrefslogblamecommitdiffstats
blob: 919ccf58b907f1f02a7a30d10b54792b0a1426c0 (plain) (tree)

































































































































































                                                                                                                                     
<?xml version='1.0'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>

  <head>

    <title>Predefined XPath Variables</title>

    <link charset="ISO-8859-1" href="../../book.css" rel="STYLESHEET"
     type="text/css"/>

  </head>

  <body>

    <h2>Predefined XPath Variables</h2>

    <p>When a JET transformation loads a model from an Eclipse 
    resource, the following XPath variables are set.</p>

    <table border="1">

      <tr>

        <th>Variable</th>

        <th>Contents</th>

      </tr>

      <tr>

        <td>org.eclipse.jet.resource.name</td>

        <td>the name of the loaded resource</td>

      </tr>

      <tr>

        <td>org.eclipse.jet.resource.type</td>

        <td>the resource type (file, folder, project)</td>

      </tr>

      <tr>

        <td>org.eclipse.jet.resource.location</td>

        <td>the resource location (absolute file system path)</td>

      </tr>

      <tr>

        <td>org.eclipse.jet.resource.rawLocation</td>

        <td>the resource raw location. See 
        <a href="PLUGINS_ROOT/org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/IResource.html#getRawLocation()">
        IResource.getRawLocation()</a>.</td>

      </tr>

      <tr>

        <td>org.eclipse.jet.resource.fullPath</td>

        <td>the Eclipse workspace relative path of the resource.</td>

      </tr>

      <tr>

        <td>org.eclipse.jet.resource.projectRelativePath</td>

        <td>the Eclipse project relative path of the resource.</td>

      </tr>

      <tr>

        <td>org.eclipse.jet.resource.fileExtension</td>

        <td>the resource file extension</td>

      </tr>

      <tr>

        <td>org.eclipse.jet.resource.fileName</td>

        <td>the resource file name (without path).</td>

      </tr>

    </table>

    <p>The following variables are defined if the loaded resource is a 
    file or folder.</p>

    <table border="1">

      <tr>

        <th>Variable</th>

        <th>Contents</th>

      </tr>

      <tr>

        <td>org.eclipse.jet.resource.parent.name</td>

        <td>The resource&apos;s parent name (files and folders 
        only)</td>

      </tr>

      <tr>

        <td>org.eclipse.jet.resource.parent.location</td>

        <td>The resource&apos;s parent location (files and folders 
        only).</td>

      </tr>

      <tr>

        <td>org.eclipse.jet.resource.parent.rawLocation</td>

        <td>the resource&apos;s parent raw location (files and folders 
        only).</td>

      </tr>

      <tr>

        <td>org.eclipse.jet.resource.parent.fullPath</td>

        <td>the resource&apos;s parent full path (files and folders 
        only).</td>

      </tr>

      <tr>

        <td>org.eclipse.jet.resource.parent.projectRelativePath</td>

        <td>the resource&apos;s parent project relative path (files and 
        folders only).</td>

      </tr>

    </table>

  </body>

</html>

Back to the top