aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/org/jsoup/nodes/XmlDeclaration.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/XmlDeclaration.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/XmlDeclaration.java')
-rw-r--r--server/src/org/jsoup/nodes/XmlDeclaration.java61
1 files changed, 0 insertions, 61 deletions
diff --git a/server/src/org/jsoup/nodes/XmlDeclaration.java b/server/src/org/jsoup/nodes/XmlDeclaration.java
deleted file mode 100644
index ce6ac678a5..0000000000
--- a/server/src/org/jsoup/nodes/XmlDeclaration.java
+++ /dev/null
@@ -1,61 +0,0 @@
-package org.jsoup.nodes;
-
-/**
- * An XML Declaration.
- *
- * @author Jonathan Hedley, jonathan@hedley.net
- */
-public class XmlDeclaration extends Node {
- private static final String DECL_KEY = "declaration";
- private final boolean isProcessingInstruction; // <! if true, <? if false,
- // declaration (and last data
- // char should be ?)
-
- /**
- * Create a new XML declaration
- *
- * @param data
- * data
- * @param baseUri
- * base uri
- * @param isProcessingInstruction
- * is processing instruction
- */
- public XmlDeclaration(String data, String baseUri,
- boolean isProcessingInstruction) {
- super(baseUri);
- attributes.put(DECL_KEY, data);
- this.isProcessingInstruction = isProcessingInstruction;
- }
-
- @Override
- public String nodeName() {
- return "#declaration";
- }
-
- /**
- * Get the unencoded XML declaration.
- *
- * @return XML declaration
- */
- public String getWholeDeclaration() {
- return attributes.get(DECL_KEY);
- }
-
- @Override
- void outerHtmlHead(StringBuilder accum, int depth,
- Document.OutputSettings out) {
- accum.append("<").append(isProcessingInstruction ? "!" : "?")
- .append(getWholeDeclaration()).append(">");
- }
-
- @Override
- void outerHtmlTail(StringBuilder accum, int depth,
- Document.OutputSettings out) {
- }
-
- @Override
- public String toString() {
- return outerHtml();
- }
-}