com.xceptance.xlt.report.external.config.TableConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xlt Show documentation
Show all versions of xlt Show documentation
XLT (Xceptance LoadTest) is an extensive load and performance test tool developed and maintained by Xceptance.
/*
* Copyright (c) 2005-2022 Xceptance Software Technologies GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xceptance.xlt.report.external.config;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlTransient;
/**
* @author matthias.ullrich
*/
public class TableConfig
{
public enum TableType
{
minmaxavg, plain
};
@XmlTransient
private static final String DEFAULT_TABLE_TITLE = "Unnamed";
@XmlTransient
private static final TableType DEFAULT_TABLE_TYPE = TableType.minmaxavg;
private String title = DEFAULT_TABLE_TITLE;
private TableType type = DEFAULT_TABLE_TYPE;
private final List rows = new ArrayList();
private final List columns = new ArrayList();
/**
* table title
*
* @return table title
*/
@XmlAttribute(name = "title", required = false)
public String getTitle()
{
return title;
}
/**
* table type
*
* @return table type
*/
@XmlAttribute(name = "type", required = false)
public TableType getType()
{
return type;
}
/**
* @return table row configuration
*/
@XmlElementWrapper(name = "rows")
@XmlElement(name = "row", required = false)
public List getRows()
{
return rows;
}
/**
* @return table column configuration
*/
@XmlElementWrapper(name = "cols")
@XmlElement(name = "col", required = false)
public List getColumns()
{
return columns;
}
/*
* DO NOT REMOVE METHODS BELOW !
*/
@SuppressWarnings("unused")
private void setTitle(final String title)
{
this.title = title;
}
@SuppressWarnings("unused")
private void setType(final TableType type)
{
this.type = type;
}
}