java/sql-dk/src/main/java/info/globalcode/sql/dk/formatting/FormatterContext.java
author František Kučera <franta-hg@frantovo.cz>
Thu, 24 Oct 2019 21:43:08 +0200
branchv_0
changeset 250 aae5009bd0af
parent 246 277c18b48762
permissions -rw-r--r--
fix license version: GNU GPLv3
franta-hg@24
     1
/**
franta-hg@24
     2
 * SQL-DK
franta-hg@24
     3
 * Copyright © 2013 František Kučera (frantovo.cz)
franta-hg@24
     4
 *
franta-hg@24
     5
 * This program is free software: you can redistribute it and/or modify
franta-hg@24
     6
 * it under the terms of the GNU General Public License as published by
franta-hg@250
     7
 * the Free Software Foundation, version 3 of the License.
franta-hg@24
     8
 *
franta-hg@24
     9
 * This program is distributed in the hope that it will be useful,
franta-hg@24
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
franta-hg@24
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
franta-hg@24
    12
 * GNU General Public License for more details.
franta-hg@24
    13
 *
franta-hg@24
    14
 * You should have received a copy of the GNU General Public License
franta-hg@24
    15
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
franta-hg@24
    16
 */
franta-hg@24
    17
package info.globalcode.sql.dk.formatting;
franta-hg@24
    18
franta-hg@104
    19
import info.globalcode.sql.dk.configuration.Properties;
franta-hg@24
    20
import java.io.OutputStream;
franta-hg@246
    21
import java.util.List;
franta-hg@24
    22
franta-hg@24
    23
/**
franta-hg@155
    24
 * To be passed from the SQL-DK core to the formatter.
franta-hg@24
    25
 *
franta-hg@24
    26
 * @author Ing. František Kučera (frantovo.cz)
franta-hg@24
    27
 */
franta-hg@24
    28
public class FormatterContext {
franta-hg@24
    29
franta-hg@24
    30
	private OutputStream outputStream;
franta-hg@104
    31
	private Properties properties;
franta-hg@246
    32
	private List<String> relationNames;
franta-hg@24
    33
franta-hg@246
    34
	public FormatterContext(OutputStream outputStream, Properties properties, List<String> relationNames) {
franta-hg@24
    35
		this.outputStream = outputStream;
franta-hg@104
    36
		this.properties = properties;
franta-hg@246
    37
		this.relationNames = relationNames;
franta-hg@24
    38
	}
franta-hg@24
    39
franta-hg@24
    40
	public OutputStream getOutputStream() {
franta-hg@24
    41
		return outputStream;
franta-hg@24
    42
	}
franta-hg@104
    43
franta-hg@104
    44
	public Properties getProperties() {
franta-hg@104
    45
		return properties;
franta-hg@104
    46
	}
franta-hg@104
    47
franta-hg@104
    48
	public void setProperties(Properties properties) {
franta-hg@104
    49
		this.properties = properties;
franta-hg@104
    50
	}
franta-hg@246
    51
franta-hg@246
    52
	public List<String> getRelationNames() {
franta-hg@246
    53
		return relationNames;
franta-hg@246
    54
	}
franta-hg@246
    55
franta-hg@246
    56
	public void setOutputStream(OutputStream outputStream) {
franta-hg@246
    57
		this.outputStream = outputStream;
franta-hg@246
    58
	}
franta-hg@246
    59
franta-hg@24
    60
}