All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.smartbear.readyapi.junit.impl.TestcaseDocumentImpl Maven / Gradle / Ivy

The newest version!
/*
 * An XML document type.
 * Localname: testcase
 * Namespace: http://smartbear.com/readyapi/junit
 * Java type: com.smartbear.readyapi.junit.TestcaseDocument
 *
 * Automatically generated - do not modify.
 */
package com.smartbear.readyapi.junit.impl;
/**
 * A document containing one testcase(@http://smartbear.com/readyapi/junit) element.
 *
 * This is a complex type.
 */
public class TestcaseDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.smartbear.readyapi.junit.TestcaseDocument
{
    private static final long serialVersionUID = 1L;
    
    public TestcaseDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TESTCASE$0 = 
        new javax.xml.namespace.QName("http://smartbear.com/readyapi/junit", "testcase");
    
    
    /**
     * Gets the "testcase" element
     */
    public com.smartbear.readyapi.junit.Testcase getTestcase()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.smartbear.readyapi.junit.Testcase target = null;
            target = (com.smartbear.readyapi.junit.Testcase)get_store().find_element_user(TESTCASE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "testcase" element
     */
    public void setTestcase(com.smartbear.readyapi.junit.Testcase testcase)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.smartbear.readyapi.junit.Testcase target = null;
            target = (com.smartbear.readyapi.junit.Testcase)get_store().find_element_user(TESTCASE$0, 0);
            if (target == null)
            {
                target = (com.smartbear.readyapi.junit.Testcase)get_store().add_element_user(TESTCASE$0);
            }
            target.set(testcase);
        }
    }
    
    /**
     * Appends and returns a new empty "testcase" element
     */
    public com.smartbear.readyapi.junit.Testcase addNewTestcase()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.smartbear.readyapi.junit.Testcase target = null;
            target = (com.smartbear.readyapi.junit.Testcase)get_store().add_element_user(TESTCASE$0);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy