tmf : Add parameters to XML core methods
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.analysis.xml.core / src / org / eclipse / tracecompass / tmf / analysis / xml / core / model / ITmfXmlStateAttribute.java
index a5b584660a579ee3eae011444b592ab89fdda118..8763b0af21b0a1f885f9d2346648bf4838e05329 100644 (file)
@@ -31,12 +31,17 @@ public interface ITmfXmlStateAttribute {
      * builder mode.
      *
      * @param startQuark
-     *            root quark, use {@link IXmlStateSystemContainer#ROOT_QUARK} to search
-     *            the full attribute tree
+     *            root quark, use {@link IXmlStateSystemContainer#ROOT_QUARK} to
+     *            search the full attribute tree
+     * @param scenarioInfo
+     *            The active scenario details. Or <code>null</code> if there is
+     *            no scenario.
      * @return the quark described by attribute or
-     *         {@link IXmlStateSystemContainer#ERROR_QUARK} if quark cannot be found
+     *         {@link IXmlStateSystemContainer#ERROR_QUARK} if quark cannot be
+     *         found
+     * @since 2.0
      */
-    int getAttributeQuark(int startQuark);
+    int getAttributeQuark(int startQuark, @Nullable TmfXmlScenarioInfo scenarioInfo);
 
     /**
      * This method gets the quark for this state attribute in the State System.
@@ -48,10 +53,15 @@ public interface ITmfXmlStateAttribute {
      * @param event
      *            The current event being handled
      * @param startQuark
-     *            root quark, use {@link IXmlStateSystemContainer#ROOT_QUARK} to search
-     *            the full attribute tree
+     *            root quark, use {@link IXmlStateSystemContainer#ROOT_QUARK} to
+     *            search the full attribute tree
+     * @param scenarioInfo
+     *            The active scenario details. Or <code>null</code> if there is
+     *            no scenario.
      * @return the quark described by attribute or
-     *         {@link IXmlStateSystemContainer#ERROR_QUARK} if quark cannot be found
+     *         {@link IXmlStateSystemContainer#ERROR_QUARK} if quark cannot be
+     *         found
+     * @since 2.0
      */
-    int getAttributeQuark(@Nullable ITmfEvent event, int startQuark);
+    int getAttributeQuark(@Nullable ITmfEvent event, int startQuark, @Nullable TmfXmlScenarioInfo scenarioInfo);
 }
This page took 0.0246729999999999 seconds and 5 git commands to generate.