class TrifaceJythonAction(ATrifaceAction): def __init__(self): self.objectmap = {} # abstract function def execute(self): abstract # getters / setters def setMapInternal(self,m): # TODO: check type and use alternate map impl (HashMap, RubyMap?) if isinstance(m, PersistentArrayMap): self.objectmap = ClojureMap(m) else: self.objectmap = m; def getMapInternal(self): if(type(self.objectmap) is not dict): return self.objectmap.getmap() else: return self.objectmap
def setMapInternal(self,m): # TODO: check type and use alternate map impl (HashMap, RubyMap?) if isinstance(m, PersistentArrayMap): self.objectmap = ClojureMap(m) else: self.objectmap = m;