java/alt2xml-cli/src/cz/frantovo/alt2xml/cli/CLIOptions.java
changeset 64 e2c691eedf4d
parent 58 c11792ae6489
child 90 c96459e02690
     1.1 --- a/java/alt2xml-cli/src/cz/frantovo/alt2xml/cli/CLIOptions.java	Thu Sep 04 00:39:11 2014 +0200
     1.2 +++ b/java/alt2xml-cli/src/cz/frantovo/alt2xml/cli/CLIOptions.java	Thu Sep 04 16:07:10 2014 +0200
     1.3 @@ -46,7 +46,7 @@
     1.4  
     1.5  	public void validate() throws InvalidOptionsException {
     1.6  		InvalidOptionsException e = new InvalidOptionsException();
     1.7 -		
     1.8 +
     1.9  		if (inputFile == null && systemId == null) {
    1.10  			e.addProblem(new InvalidOptionsException.OptionProblem("Please specify also systemId when reading from a stream (like STDIN) instead of from a file."));
    1.11  		}
    1.12 @@ -109,12 +109,23 @@
    1.13  		readerProperties.put(name, value);
    1.14  	}
    1.15  
    1.16 +	public Properties getReaderProperties() {
    1.17 +		return readerProperties;
    1.18 +	}
    1.19 +
    1.20  	public void addActionProperty(String name, String value) {
    1.21  		actionProperties.put(name, value);
    1.22  	}
    1.23  
    1.24 +	public Properties getActionProperties() {
    1.25 +		return actionProperties;
    1.26 +	}
    1.27 +
    1.28  	public void addActionData(String value) {
    1.29  		actionData.add(value);
    1.30  	}
    1.31  
    1.32 +	public List<String> getActionData() {
    1.33 +		return actionData;
    1.34 +	}
    1.35  }