diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-05-14 16:51:56 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-05-14 16:51:56 (GMT) |
commit | 49127140ed2ad91bfcf532b3d2265582cb80b0db (patch) | |
tree | b31c1537973792f4ac9216de82c0f041e9e8aeae /src/bindings/swig/java/uscxml.i | |
parent | 6920a312918f989cd2970277a853fbed52cf0c38 (diff) | |
download | uscxml-49127140ed2ad91bfcf532b3d2265582cb80b0db.zip uscxml-49127140ed2ad91bfcf532b3d2265582cb80b0db.tar.gz uscxml-49127140ed2ad91bfcf532b3d2265582cb80b0db.tar.bz2 |
Retain interpreter instance for DataModels in Java (Rhino)
Diffstat (limited to 'src/bindings/swig/java/uscxml.i')
-rw-r--r-- | src/bindings/swig/java/uscxml.i | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bindings/swig/java/uscxml.i b/src/bindings/swig/java/uscxml.i index a88ebf1..5dac9d2 100644 --- a/src/bindings/swig/java/uscxml.i +++ b/src/bindings/swig/java/uscxml.i @@ -101,6 +101,7 @@ using namespace Arabica::DOM; %template(ParamPair) std::pair<std::string, uscxml::Data>; %template(ParamPairVector) std::vector<std::pair<std::string, uscxml::Data> >; %template(IOProcMap) std::map<std::string, uscxml::IOProcessor>; +%template(InvokerMap) std::map<std::string, uscxml::Invoker>; %rename Data DataNative; # %typemap(jstype) uscxml::Data "Data" @@ -140,6 +141,17 @@ using namespace Arabica::DOM; } return keys; } + + std::vector<std::string> getInvokerKeys() { + std::vector<std::string> keys; + std::map<std::string, Invoker>::const_iterator iter = self->getInvokers().begin(); + while(iter != self->getInvokers().end()) { + keys.push_back(iter->first); + iter++; + } + return keys; + } + }; %extend uscxml::Data { |