franta-hg@24: /** franta-hg@24: * SQL-DK franta-hg@24: * Copyright © 2013 František Kučera (frantovo.cz) franta-hg@24: * franta-hg@24: * This program is free software: you can redistribute it and/or modify franta-hg@24: * it under the terms of the GNU General Public License as published by franta-hg@250: * the Free Software Foundation, version 3 of the License. franta-hg@24: * franta-hg@24: * This program is distributed in the hope that it will be useful, franta-hg@24: * but WITHOUT ANY WARRANTY; without even the implied warranty of franta-hg@24: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the franta-hg@24: * GNU General Public License for more details. franta-hg@24: * franta-hg@24: * You should have received a copy of the GNU General Public License franta-hg@24: * along with this program. If not, see . franta-hg@24: */ franta-hg@24: package info.globalcode.sql.dk.formatting; franta-hg@24: franta-hg@104: import info.globalcode.sql.dk.configuration.Properties; franta-hg@24: import java.io.OutputStream; franta-hg@246: import java.util.List; franta-hg@24: franta-hg@24: /** franta-hg@155: * To be passed from the SQL-DK core to the formatter. franta-hg@24: * franta-hg@24: * @author Ing. František Kučera (frantovo.cz) franta-hg@24: */ franta-hg@24: public class FormatterContext { franta-hg@24: franta-hg@24: private OutputStream outputStream; franta-hg@104: private Properties properties; franta-hg@246: private List relationNames; franta-hg@24: franta-hg@246: public FormatterContext(OutputStream outputStream, Properties properties, List relationNames) { franta-hg@24: this.outputStream = outputStream; franta-hg@104: this.properties = properties; franta-hg@246: this.relationNames = relationNames; franta-hg@24: } franta-hg@24: franta-hg@24: public OutputStream getOutputStream() { franta-hg@24: return outputStream; franta-hg@24: } franta-hg@104: franta-hg@104: public Properties getProperties() { franta-hg@104: return properties; franta-hg@104: } franta-hg@104: franta-hg@104: public void setProperties(Properties properties) { franta-hg@104: this.properties = properties; franta-hg@104: } franta-hg@246: franta-hg@246: public List getRelationNames() { franta-hg@246: return relationNames; franta-hg@246: } franta-hg@246: franta-hg@246: public void setOutputStream(OutputStream outputStream) { franta-hg@246: this.outputStream = outputStream; franta-hg@246: } franta-hg@246: franta-hg@24: }