// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.hitfield;

/**
 * A representation of an XML chunk.
 *
 * @author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
 */
public class XMLString {

    private final String content;

    public XMLString(String content) {
        this.content = content;
    }

    public String toString() {
        return content;
    }

}

@@ -149,16 +149,52 @@
 field;%0A%0A
+import com.yahoo.data.XmlProducer;%0A%0A
 /**%0A * A
@@ -244,47 +244,8 @@
 hor 
-%3Ca href=%22mailto:steinar@yahoo-inc.com%22%3E
 Stei
@@ -259,12 +259,8 @@
 tsen
-%3C/a%3E
 %0A */
@@ -283,16 +283,39 @@
 LString 
+implements XmlProducer 
 %7B%0A%0A    p
@@ -484,10 +484,203 @@
 %0A    %7D%0A%0A
+    public StringBuilder writeXML(StringBuilder target) %7B%0A        target.append(content);%0A        return target;%0A    %7D%0A%0A    @Override%0A    public String toXML() %7B%0A        return content;%0A    %7D%0A%0A
 %7D%0A

implement XmlProducer