summaryrefslogtreecommitdiff
path: root/core/java12/com/vladium/emma/report/html/doc/TextContent.java
blob: 53c851c319fce6e978071159f994aa5abcb919c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* Copyright (C) 2003 Vladimir Roubtsov. All rights reserved.
 * 
 * This program and the accompanying materials are made available under
 * the terms of the Common Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/cpl-v10.html
 * 
 * $Id: TextContent.java,v 1.1.1.1 2004/05/09 16:57:42 vlad_r Exp $
 */
package com.vladium.emma.report.html.doc;

// ----------------------------------------------------------------------------
/**
 * @author Vlad Roubtsov, (C) 2003
 */
public
final class TextContent implements IContent
{
    // public: ................................................................

    public TextContent (final String text)
    {
        m_text = text;
    }   

    public void emit (final HTMLWriter out)
    {
        if (m_text != null)
        {
            out.write (m_text);
        }
    }
    
    // protected: .............................................................

    // package: ...............................................................
    
    // private: ...............................................................
    
    
    private final String m_text;

} // end of class
// ----------------------------------------------------------------------------