summaryrefslogtreecommitdiffstats
path: root/server/src/org/jsoup/nodes/XmlDeclaration.java
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-09-05 19:50:56 +0300
committerLeif Åstrand <leif@vaadin.com>2012-09-05 19:51:15 +0300
commit7d25670284b11c7c62ba25183f265227cb3dba83 (patch)
treec8e76eb70dd3cdd5cf59a99419635f2188b25c24 /server/src/org/jsoup/nodes/XmlDeclaration.java
parent1d0c96de9595c243d88471476d21e5f248be63f7 (diff)
downloadvaadin-framework-7d25670284b11c7c62ba25183f265227cb3dba83.tar.gz
vaadin-framework-7d25670284b11c7c62ba25183f265227cb3dba83.zip
Reformat project
Diffstat (limited to 'server/src/org/jsoup/nodes/XmlDeclaration.java')
-rw-r--r--server/src/org/jsoup/nodes/XmlDeclaration.java49
1 files changed, 31 insertions, 18 deletions
diff --git a/server/src/org/jsoup/nodes/XmlDeclaration.java b/server/src/org/jsoup/nodes/XmlDeclaration.java
index 80d4a0152f..ce6ac678a5 100644
--- a/server/src/org/jsoup/nodes/XmlDeclaration.java
+++ b/server/src/org/jsoup/nodes/XmlDeclaration.java
@@ -1,47 +1,60 @@
package org.jsoup.nodes;
/**
- An XML Declaration.
-
- @author Jonathan Hedley, jonathan@hedley.net */
+ * 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 ?)
+ 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
+ * 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) {
+ 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
+ * Get the unencoded XML declaration.
+ *
+ * @return XML declaration
*/
public String getWholeDeclaration() {
return attributes.get(DECL_KEY);
}
- void outerHtmlHead(StringBuilder accum, int depth, Document.OutputSettings out) {
- accum
- .append("<")
- .append(isProcessingInstruction ? "!" : "?")
- .append(getWholeDeclaration())
- .append(">");
+ @Override
+ void outerHtmlHead(StringBuilder accum, int depth,
+ Document.OutputSettings out) {
+ accum.append("<").append(isProcessingInstruction ? "!" : "?")
+ .append(getWholeDeclaration()).append(">");
}
- void outerHtmlTail(StringBuilder accum, int depth, Document.OutputSettings out) {}
+ @Override
+ void outerHtmlTail(StringBuilder accum, int depth,
+ Document.OutputSettings out) {
+ }
+ @Override
public String toString() {
return outerHtml();
}