java/alt2xml-lib-output/src/cz/frantovo/alt2xml/out/ActionContext.java
author František Kučera <franta-hg@frantovo.cz>
Thu, 24 Oct 2019 21:56:03 +0200
changeset 111 e4900596abdb
parent 64 e2c691eedf4d
permissions -rw-r--r--
fix license version: GNU GPLv3
franta-hg@43
     1
/**
franta-hg@43
     2
 * Alt2XML
franta-hg@43
     3
 * Copyright © 2014 František Kučera (frantovo.cz)
franta-hg@43
     4
 *
franta-hg@43
     5
 * This program is free software: you can redistribute it and/or modify
franta-hg@43
     6
 * it under the terms of the GNU General Public License as published by
franta-hg@111
     7
 * the Free Software Foundation, version 3 of the License.
franta-hg@43
     8
 *
franta-hg@43
     9
 * This program is distributed in the hope that it will be useful,
franta-hg@43
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
franta-hg@43
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
franta-hg@43
    12
 * GNU General Public License for more details.
franta-hg@43
    13
 *
franta-hg@43
    14
 * You should have received a copy of the GNU General Public License
franta-hg@43
    15
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
franta-hg@43
    16
 */
franta-hg@43
    17
package cz.frantovo.alt2xml.out;
franta-hg@43
    18
franta-hg@43
    19
import java.io.OutputStream;
franta-hg@64
    20
import java.util.List;
franta-hg@64
    21
import java.util.Properties;
franta-hg@43
    22
franta-hg@43
    23
/**
franta-hg@43
    24
 * Context for one action instance.
franta-hg@43
    25
 *
franta-hg@43
    26
 * @author Ing. František Kučera (frantovo.cz)
franta-hg@43
    27
 */
franta-hg@43
    28
public class ActionContext {
franta-hg@43
    29
franta-hg@64
    30
	private final OutputStream outputStream;
franta-hg@64
    31
	private Properties actionProperties;
franta-hg@64
    32
	private List<String> actionData;
franta-hg@43
    33
franta-hg@43
    34
	public ActionContext(OutputStream outputStream) {
franta-hg@43
    35
		this.outputStream = outputStream;
franta-hg@43
    36
	}
franta-hg@43
    37
franta-hg@43
    38
	public OutputStream getOutputStream() {
franta-hg@43
    39
		return outputStream;
franta-hg@43
    40
	}
franta-hg@43
    41
franta-hg@64
    42
	public Properties getActionProperties() {
franta-hg@64
    43
		return actionProperties;
franta-hg@64
    44
	}
franta-hg@64
    45
franta-hg@64
    46
	public void setActionProperties(Properties actionProperties) {
franta-hg@64
    47
		this.actionProperties = actionProperties;
franta-hg@64
    48
	}
franta-hg@64
    49
franta-hg@64
    50
	public List<String> getActionData() {
franta-hg@64
    51
		return actionData;
franta-hg@64
    52
	}
franta-hg@64
    53
franta-hg@64
    54
	public void setActionData(List<String> actionData) {
franta-hg@64
    55
		this.actionData = actionData;
franta-hg@64
    56
	}
franta-hg@64
    57
franta-hg@43
    58
}