<?xml version="1.0" encoding="UTF-8"?>
<!--
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - JASMINe
  - Copyright (C) 2011 Bull S.A.S.
  - Contact: jasmine@ow2.org
  -
  - This library is free software; you can redistribute it and/or
  - modify it under the terms of the GNU Lesser General Public
  - License as published by the Free Software Foundation; either
  - version 2.1 of the License, or any later version.
  -
  - This library is distributed in the hope that it will be useful,
  - but WITHOUT ANY WARRANTY; without even the implied warranty of
  - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  - Lesser General Public License for more details.
  -
  - You should have received a copy of the GNU Lesser General Public
  - License along with this library; if not, write to the Free Software
  - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  - USA
  -
  -
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - $Id$
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-->

<appendix version="5.0" xml:lang="en" xml:id="jasmineprobe.fragments" xmlns="http://docbook.org/ns/docbook"
      xmlns:xlink="http://www.w3.org/1999/xlink"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:svg="http://www.w3.org/2000/svg"
      xmlns:mml="http://www.w3.org/1998/Math/MathML"
      xmlns:html="http://www.w3.org/1999/xhtml"
      xmlns:db="http://docbook.org/ns/docbook">
  <title>Fragments naming grammar</title>

<para>Here is the grammar of the fragments naming use for the MBean attribute names and indicator value names.</para>

<screen>
   &lt;fragment name&gt; ::= &lt;base name&gt; &lt;fragment elements&gt;
   &lt;base name&gt; :: = &lt;identifier&gt;
   &lt;fragment elements&gt; ::= &lt;fragment element&gt; | &lt;fragment element&gt; &lt;fragment elements&gt;
   &lt;fragment element&gt; ::= &lt;key element&gt; | &lt;index expression&gt; | &lt;list index&gt;
   &lt;key element&gt; ::= "." &lt;key name&gt;
   &lt;key name&gt; ::= &lt;identifier&gt;
   &lt;index expression&gt; ::= "[" &lt;indexes&gt; "]"
   &lt;indexes&gt; ::= &lt;index&gt; | &lt;index&gt; "," &lt;indexes&gt;
   &lt;index&gt;:: = &lt;identifier&gt; | &lt;integer&gt;
   &lt;list index&gt; ::=  "." &lt;integer&gt;
</screen>

</appendix>
