Package org.apache.marmotta.ldclient.provider.phpbb.mapping

Examples of org.apache.marmotta.ldclient.provider.phpbb.mapping.PHPBBDateMapper


                commentMappings.put(Namespaces.NS_DC + "creator",
                        new CssTextLiteralMapper(String.format("div#pagecontent table:has(a[name=p%s]) .postauthor", params.get("p"))));
                commentMappings.put(Namespaces.NS_DC + "description",
                        new CssTextLiteralMapper(String.format("div#pagecontent table:has(a[name=p%s]) div.postbody", params.get("p"))));
                commentMappings.put(Namespaces.NS_DC + "date",
                        new PHPBBDateMapper(String.format("div#pagecontent td.gensmall:has(a[name=p%s]) div", params.get("p"))) {
                    @Override
                    public Elements select(Element htmlDoc) {
                        final Elements sel = super.select(htmlDoc);
                        if (sel.size() > 0) {
                            final Element e = sel.get(1);
View Full Code Here


                            if (first != null)
                                return new Elements(first);
                            return new Elements();
                        }
                    }));
                    postMappings.put(Namespaces.NS_DC + "date", new PHPBBDateMapper("div#pagecontent table td.gensmall div") {
                        @Override
                        public Elements select(Element htmlDoc) {
                            final Elements sel = super.select(htmlDoc);
                            if (sel.size() > 0) {
                                final Element e = sel.get(1);
View Full Code Here

TOP

Related Classes of org.apache.marmotta.ldclient.provider.phpbb.mapping.PHPBBDateMapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.