// Path: src/saiba/bml/core/BMLElement.java
// public class BMLElement extends XMLStructureAdapter
// {
//     public String id;
//     public String getBmlId()
//     {
//         return "";
//     }
//     
//     
//     /*
//      * The XML Stag for XML encoding
//      */
//     private static final String XMLTAG = "BMLStructureAdapter";
// 
//     /**
//      * The XML Stag for XML encoding -- use this static method when you want to see if a given
//      * String equals the xml tag for this class
//      */
//     public static String xmlTag()
//     {
//         return XMLTAG;
//     }
// 
//     /**
//      * The XML Stag for XML encoding -- use this method to find out the run-time xml tag of an
//      * object
//      */
//     @Override
//     public String getXMLTag()
//     {
//         return XMLTAG;
//     }
// 
//     /**
//      * Registers the (full) id of this BMLElement with the scheduler.
//      */
//     public void registerElementsById(BMLParser scheduler)
//     {
//         // Register this BMLElement.
//         scheduler.registerBMLElement(this);
//     }
// 
//     /**
//      * Detects loops in decodeContent()-methods.
//      */
//     private int prevLine = -1;
// 
//     private int prevChar = -1;
// 
//     protected void ensureDecodeProgress(XMLTokenizer tokenizer)
//     {
//         int curLine = tokenizer.getLine();
//         int curChar = tokenizer.getCharPos();
//         if (curLine == prevLine && curChar == prevChar)
//         {
//             throw new XMLScanException(
//                     "Loop detected, no valid BML. Possibly, a STag was encountered that cannot be parsed. Line: "
//                             + curLine + ", char: " + curChar);
//         }
//         else
//         {
//             prevLine = curLine;
//             prevChar = curChar;
//         }
//     }
//     
//     public static final String BMLNAMESPACE = "http://www.bml-initiative.org/bml/bml-1.0";
// 
//     @Override
//     public String getNamespace()
//     {
//         return BMLNAMESPACE;
//     }
// }


import saiba.bml.core.BMLElement;
/*******************************************************************************
 * Copyright (c) 2013 University of Twente, Bielefeld University
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 ******************************************************************************/
package saiba.utils;


/**
 * Test utility functions
 * @author Herwin
 */
public final class TestUtil
{
    private TestUtil()
    {
    }
    
    public static final String getDefNS()
    {
// Path: src/saiba/bml/core/BMLElement.java
// public class BMLElement extends XMLStructureAdapter
// {
//     public String id;
//     public String getBmlId()
//     {
//         return "";
//     }
//     
//     
//     /*
//      * The XML Stag for XML encoding
//      */
//     private static final String XMLTAG = "BMLStructureAdapter";
// 
//     /**
//      * The XML Stag for XML encoding -- use this static method when you want to see if a given
//      * String equals the xml tag for this class
//      */
//     public static String xmlTag()
//     {
//         return XMLTAG;
//     }
// 
//     /**
//      * The XML Stag for XML encoding -- use this method to find out the run-time xml tag of an
//      * object
//      */
//     @Override
//     public String getXMLTag()
//     {
//         return XMLTAG;
//     }
// 
//     /**
//      * Registers the (full) id of this BMLElement with the scheduler.
//      */
//     public void registerElementsById(BMLParser scheduler)
//     {
//         // Register this BMLElement.
//         scheduler.registerBMLElement(this);
//     }
// 
//     /**
//      * Detects loops in decodeContent()-methods.
//      */
//     private int prevLine = -1;
// 
//     private int prevChar = -1;
// 
//     protected void ensureDecodeProgress(XMLTokenizer tokenizer)
//     {
//         int curLine = tokenizer.getLine();
//         int curChar = tokenizer.getCharPos();
//         if (curLine == prevLine && curChar == prevChar)
//         {
//             throw new XMLScanException(
//                     "Loop detected, no valid BML. Possibly, a STag was encountered that cannot be parsed. Line: "
//                             + curLine + ", char: " + curChar);
//         }
//         else
//         {
//             prevLine = curLine;
//             prevChar = curChar;
//         }
//     }
//     
//     public static final String BMLNAMESPACE = "http://www.bml-initiative.org/bml/bml-1.0";
// 
//     @Override
//     public String getNamespace()
//     {
//         return BMLNAMESPACE;
//     }
// }


// Path: test/src/saiba/utils/TestUtil.java
import saiba.bml.core.BMLElement;

/*******************************************************************************
 * Copyright (c) 2013 University of Twente, Bielefeld University
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 ******************************************************************************/
package saiba.utils;


/**
 * Test utility functions
 * @author Herwin
 */
public final class TestUtil
{
    private TestUtil()
    {
    }
    
    public static final String getDefNS()
    {
        return " xmlns=\""+BMLElement.BMLNAMESPACE+"\" ";