From: Taeyoung Son Date: Tue, 11 Dec 2012 08:02:40 +0000 (+0900) Subject: [Title] Create jsoup model X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b08340431befd34eda6eb8265986b141f18a123;p=sdk%2Fide%2Fcommon-eplugin.git [Title] Create jsoup model [Desc.] [Issue] Change-Id: I9795a553d49951ce802a95fa4bc0dfb71c03fb1d --- diff --git a/org.tizen.common.verrari/META-INF/MANIFEST.MF b/org.tizen.common.verrari/META-INF/MANIFEST.MF index fb2627f..7755341 100755 --- a/org.tizen.common.verrari/META-INF/MANIFEST.MF +++ b/org.tizen.common.verrari/META-INF/MANIFEST.MF @@ -24,5 +24,6 @@ Export-Package: org.jsoup, org.tizen.common.verrari.engine.freemarker, org.tizen.common.verrari.engine.jsoup, org.tizen.common.verrari.model, + org.tizen.common.verrari.model.jsoup, org.tizen.common.verrari.template, org.tizen.common.verrari.util diff --git a/org.tizen.common.verrari/src/org/tizen/common/verrari/model/jsoup/JsoupModel.java b/org.tizen.common.verrari/src/org/tizen/common/verrari/model/jsoup/JsoupModel.java new file mode 100644 index 0000000..bfd46bb --- /dev/null +++ b/org.tizen.common.verrari/src/org/tizen/common/verrari/model/jsoup/JsoupModel.java @@ -0,0 +1,15 @@ +package org.tizen.common.verrari.model.jsoup; + +import org.jsoup.nodes.Attribute; +import org.tizen.common.verrari.model.ModelManager; + +public class JsoupModel extends ModelManager { + + protected void setOption(String selector, String attribute, String attributeValue) { + setOption(selector, new Attribute(attribute, attributeValue)); + } + + protected void setOption(String selector, Attribute attribute) { + addModel(selector, attribute); + } +} \ No newline at end of file