Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Struckmann2014-12-10 08:19:52 +0000
committerSebastian Struckmann2014-12-10 08:19:52 +0000
commitabecda2fe6e77206ff04ea407f797000b197e2bf (patch)
tree5e0d2797752ae31c6f0a2d993f6e7710fb1131dd /org.eclipse.jubula.qa.api.rcp
parentc17410a52ef32d7986564f759bd43b70bea25bc6 (diff)
downloadorg.eclipse.jubula.core-abecda2fe6e77206ff04ea407f797000b197e2bf.tar.gz
org.eclipse.jubula.core-abecda2fe6e77206ff04ea407f797000b197e2bf.tar.xz
org.eclipse.jubula.core-abecda2fe6e77206ff04ea407f797000b197e2bf.zip
Sprint task - Java API - Moved variable store to converter target
Diffstat (limited to 'org.eclipse.jubula.qa.api.rcp')
-rw-r--r--org.eclipse.jubula.qa.api.rcp/src/main/java/org/eclipse/jubula/qa/api/VariableStore.java55
1 files changed, 0 insertions, 55 deletions
diff --git a/org.eclipse.jubula.qa.api.rcp/src/main/java/org/eclipse/jubula/qa/api/VariableStore.java b/org.eclipse.jubula.qa.api.rcp/src/main/java/org/eclipse/jubula/qa/api/VariableStore.java
deleted file mode 100644
index 217fb8131..000000000
--- a/org.eclipse.jubula.qa.api.rcp/src/main/java/org/eclipse/jubula/qa/api/VariableStore.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2014 BREDEX GmbH.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * BREDEX GmbH - initial API and implementation and/or initial documentation
- *******************************************************************************/
-package org.eclipse.jubula.qa.api;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- * @created 08.12.2014
- */
-public class VariableStore {
- /** the logger */
- private static Logger log = LoggerFactory.getLogger(VariableStore.class);
-
- private static VariableStore instance;
-
- private Map<String, String> variablePool = new HashMap<String, String>();
-
- /**
- * Storing variables
- */
- private VariableStore() {
- //empty
- }
-
- public static VariableStore getInstance() {
- if (instance == null) {
- instance = new VariableStore();
- }
- return instance;
- }
-
- public void addVariable(String name, String value) {
- variablePool.put(name, value);
- }
-
- public String getValue(String variableName) {
- String value = variablePool.get(variableName);
- if (value == null) {
- log.error("Variable '" + variableName + "' was not set in variable pool."); //$NON-NLS-1$ //$NON-NLS-2$
- }
- return value;
- }
-} \ No newline at end of file

Back to the top