{"parse":{"title":"Apertium:Sandbox","pageid":9,"revid":3119,"text":{"*":"<div class=\"mw-parser-output\"><table style=\"background-color: transparent; border:1px dotted #000000;padding:2px;margin:2px;\">\n<tbody><tr>\n<td><i>Welcome to the <b>Apertium Sandbox</b>! This page allows you to carry out experiments. To edit, click <b><a rel=\"nofollow\" class=\"external text\" href=\"//wiki.apertium.org/w/index.php?title=Apertium:Sandbox&amp;action=edit\">here</a></b> or <b>edit this page</b> above (or the views section for obscure browsers), make your changes and click the <b>Save page</b> button when finished. Content will <b>not</b> stay permanently; this page is <b>automatically cleaned</b> every hour.</i>\n<p><i>Please do not place copyrighted, offensive, or libelous content in the sandbox(es). If you have any questions regarding <a href=\"/wiki/Apertium\" title=\"Apertium\">Apertium</a>, please see <a href=\"/w/index.php?title=Apertium:Questions&amp;action=edit&amp;redlink=1\" class=\"new\" title=\"Apertium:Questions (page does not exist)\">Apertium:Questions</a>. Thanks!</i>\n</p>\n<dl><dd><i>This page is a virtual sandbox on Apertium Wiki. For uses of sandboxes, see the article <a href=\"/wiki/Sandbox\" class=\"mw-redirect\" title=\"Sandbox\">sandbox</a>.</i></dd></dl>\n</td>\n<td>\n<table style=\"background-color: transparent;\">\n\n<tbody><tr>\n<td><div style=\"border: 1px solid black; text-align: center; padding:5px; font-size: small; background: #eeeeee; white-space: nowrap;\">\n<p>More info:<br />\n<a href=\"/w/index.php?title=Apertium:Introduction&amp;action=edit&amp;redlink=1\" class=\"new\" title=\"Apertium:Introduction (page does not exist)\">Introduction to Apertium</a><br />\n<a href=\"/w/index.php?title=Apertium:About_the_Sandbox&amp;action=edit&amp;redlink=1\" class=\"new\" title=\"Apertium:About the Sandbox (page does not exist)\">About the Sandbox</a><br />\n</p>\n<a href=\"/w/index.php?title=Apertium:Tutorial&amp;action=edit&amp;redlink=1\" class=\"new\" title=\"Apertium:Tutorial (page does not exist)\">Editing tutorial</a></div>\n</td></tr></tbody></table>\n</td></tr></tbody></table>\n<p><br />\n</p>\n<pre>import org.freedesktop.DBus;\nimport org.freedesktop.dbus.DBusConnection;\nimport org.freedesktop.dbus.exceptions.DBusException;\n\nimport org.apertium.Info; // The interface we use to access org.apertium.info/\n\nclass TestDBus {\n\n        public static void main(String[] args) throws org.freedesktop.dbus.exceptions.DBusException {\n                DBusConnection bus = null;\n                Info info = null;\n\n                bus = DBusConnection.getConnection(DBusConnection.SESSION);\n                info = bus.getRemoteObject(\"org.apertium.info\", \"/\", Info.class);\n\n                for (String s&#160;: info.modes()) {\n                        System.out.println(s);\n                }\n\n                bus.disconnect();\n        }\n}\n</pre>\n<!-- \nNewPP limit report\nCached time: 20260530191813\nCache expiry: 86400\nDynamic content: false\nComplications: []\nCPU time usage: 0.012 seconds\nReal time usage: 0.013 seconds\nPreprocessor visited node count: 14/1000000\nPreprocessor generated node count: 0/1000000\nPost\u2010expand include size: 1272/2097152 bytes\nTemplate argument size: 0/2097152 bytes\nHighest expansion depth: 4/40\nExpensive parser function count: 0/100\nUnstrip recursion depth: 0/20\nUnstrip post\u2010expand size: 737/5000000 bytes\n-->\n<!--\nTransclusion expansion time report (%,ms,calls,template)\n100.00%    5.713      1 -total\n 52.50%    2.999      1 Template:Sandbox\n 46.19%    2.639      1 User:Soroush/Tests\n-->\n\n<!-- Saved in parser cache with key wiki:pcache:idhash:9-0!canonical and timestamp 20260530191813 and revision id 3119\n -->\n</div>"},"langlinks":[],"categories":[],"links":[{"ns":0,"exists":"","*":"Apertium"},{"ns":0,"exists":"","*":"Sandbox"},{"ns":4,"*":"Apertium:Questions"},{"ns":4,"*":"Apertium:Introduction"},{"ns":4,"*":"Apertium:About the Sandbox"},{"ns":4,"*":"Apertium:Tutorial"}],"templates":[{"ns":10,"exists":"","*":"Template:Sandbox"},{"ns":2,"exists":"","*":"User:Soroush/Tests"}],"images":[],"externallinks":[],"sections":[],"parsewarnings":[],"displaytitle":"Apertium:Sandbox","iwlinks":[],"properties":[]}}