aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/org/jsoup/nodes/Comment.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-08-28 20:00:00 +0300
committerArtur Signell <artur@vaadin.com>2012-09-09 11:22:54 +0300
commit38212596d91e9e167253d7debb154d18e3ff38b0 (patch)
tree99775812644e3ef421cfa3a6039677bc4cdb8093 /server/src/org/jsoup/nodes/Comment.java
parent0a77dae8b57a99cb5112a387b2a374c14e1fae1b (diff)
downloadvaadin-framework-38212596d91e9e167253d7debb154d18e3ff38b0.tar.gz
vaadin-framework-38212596d91e9e167253d7debb154d18e3ff38b0.zip
Jsoup is now declared as a dependency (#9299)
Diffstat (limited to 'server/src/org/jsoup/nodes/Comment.java')
-rw-r--r--server/src/org/jsoup/nodes/Comment.java56
1 files changed, 0 insertions, 56 deletions
diff --git a/server/src/org/jsoup/nodes/Comment.java b/server/src/org/jsoup/nodes/Comment.java
deleted file mode 100644
index 6abe0e3066..0000000000
--- a/server/src/org/jsoup/nodes/Comment.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package org.jsoup.nodes;
-
-/**
- * A comment node.
- *
- * @author Jonathan Hedley, jonathan@hedley.net
- */
-public class Comment extends Node {
- private static final String COMMENT_KEY = "comment";
-
- /**
- * Create a new comment node.
- *
- * @param data
- * The contents of the comment
- * @param baseUri
- * base URI
- */
- public Comment(String data, String baseUri) {
- super(baseUri);
- attributes.put(COMMENT_KEY, data);
- }
-
- @Override
- public String nodeName() {
- return "#comment";
- }
-
- /**
- * Get the contents of the comment.
- *
- * @return comment content
- */
- public String getData() {
- return attributes.get(COMMENT_KEY);
- }
-
- @Override
- void outerHtmlHead(StringBuilder accum, int depth,
- Document.OutputSettings out) {
- if (out.prettyPrint()) {
- indent(accum, depth, out);
- }
- accum.append("<!--").append(getData()).append("-->");
- }
-
- @Override
- void outerHtmlTail(StringBuilder accum, int depth,
- Document.OutputSettings out) {
- }
-
- @Override
- public String toString() {
- return outerHtml();
- }
-}