@@ -0,0 +1,1725 @@
+package de.finetech.groovy.utils;%0A%0Aimport java.io.Serializable;%0Aimport java.util.Collection;%0Aimport java.util.Map;%0Aimport java.util.Set;%0A%0Aimport de.abas.eks.jfop.remote.FO;%0Aimport de.finetech.groovy.AbasBaseScript;%0A%0Apublic class GroovyFOMap implements Map%3CString,Object%3E, Cloneable, Serializable %7B%0A%0A%09private static final long serialVersionUID = 4146145334512673667L;%0A%09private String buffer = null;%0A%09private AbasBaseScript script;%0A%09%0A%09public void clear() %7B%7D%0A%09%0A%09public GroovyFOMap(String buffer, AbasBaseScript script)%7B%0A%09%09this.script = script;%0A%09%09this.buffer = buffer;%0A%09%7D%0A%09%0A%09public boolean containsKey(Object key) %7B%0A%09%09String value = FO.getValue(%22F%22, %22defined(%22 + buffer+%22%7C%22+key + %22)%22).toLowerCase();%0A%09%09return value.equals(%22true%22) %7C%7C value.equals(%22ja%22);%0A%09%7D%0A%0A%09public boolean containsValue(java.lang.Object value) %7Breturn false;%7D%0A%0A%09public Set%3Cjava.util.Map.Entry%3CString, Object%3E%3E entrySet() %7Breturn null;%7D%0A%0A%09public Object get(Object key) %7B%0A%09%09if(this.containsKey(key))%0A%09%09%09return script.getValue(buffer+%22%7C%22+key);%0A%09%09return null;%0A%09%7D%0A%0A%09public boolean isEmpty() %7B%0A%09%09return false;%0A%09%7D%0A%0A%09// TODO pr%C3%BCfen ob es eine m%C3%B6glichkeit gibt alle Variablen eines Puffers zu ermitteln%0A%09public Set%3CString%3E keySet() %7B%0A%09%09return null;%0A%09%7D%0A%09// TODO siehe oben%0A%09public int size() %7B%0A%09%09return 0;%0A%09%7D%0A%09%0A%09public Object put(String key, Object value) %7B%0A%09%09if(this.containsKey(key))%7B%0A%09%09%09String val = value.toString();%0A%09%09%09if(val.contains(%22'%22))%7B%0A%09%09%09%09script.formula(buffer+%22%7C%22+key, val);%0A%09%09%09%7Delse%7B%0A%09%09%09%09script.fo(buffer+%22%7C%22+key, val);%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return null;%0A%09%7D%0A%0A%09public void putAll(Map%3C? extends String, ? extends Object%3E m) %7B%0A%09%09// TODO implementieren%0A%09%7D%0A%0A%09public Object remove(java.lang.Object key) %7Breturn null;%7D%0A%0A%09public Collection%3CObject%3E values() %7Breturn null;%7D%0A%0A%09%0A%7D%0A

Create GroovyFOMap.java