org.eclipse.jubula.client.api.converter.CTDSInfo.java Source code

Java tutorial

Introduction

Here is the source code for org.eclipse.jubula.client.api.converter.CTDSInfo.java

Source

/*******************************************************************************
 * Copyright (c) 2014 BREDEX GmbH.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     BREDEX GmbH - initial API and implementation and/or initial documentation
 *******************************************************************************/
package org.eclipse.jubula.client.api.converter;

import java.util.Locale;

import org.apache.commons.lang.StringUtils;
import org.eclipse.jubula.client.core.model.IProjectPO;

/**
 *  Information for creating a Central Test Data Set of a project
 *  @created 28.10.2014
 */
public class CTDSInfo {

    /** The class name of the test case */
    private String m_className;

    /** The base path of the package */
    private String m_packageBasePath;

    /** the default toolkit */
    private IProjectPO m_project;

    /** the project default language */
    private Locale m_language;

    /**
     * @param className the class name
     * @param packageBasePath the base path of the package
     * @param project the project
     * @param language the language
     */
    public CTDSInfo(String className, IProjectPO project, String packageBasePath, Locale language) {
        m_className = StringUtils.substringBeforeLast(className, ".java"); //$NON-NLS-1$
        m_packageBasePath = packageBasePath;
        m_project = project;
        m_language = language;
    }

    /**
     * @return The class name of the test case
     */
    public String getClassName() {
        return m_className;
    }

    /**
     * @return The base path of the package
     */
    public String getPackageBasePath() {
        return m_packageBasePath;
    }

    /**
     * @return The project
     */
    public IProjectPO getProject() {
        return m_project;
    }

    /**
     * @return The project language
     */
    public Locale getLanguage() {
        return m_language;
    }

}