Home | History | Annotate | Download | only in doc
      1 /* Copyright (C) 2003 Vladimir Roubtsov. All rights reserved.
      2  *
      3  * This program and the accompanying materials are made available under
      4  * the terms of the Common Public License v1.0 which accompanies this distribution,
      5  * and is available at http://www.eclipse.org/legal/cpl-v10.html
      6  *
      7  * $Id: TextContent.java,v 1.1.1.1 2004/05/09 16:57:42 vlad_r Exp $
      8  */
      9 package com.vladium.emma.report.html.doc;
     10 
     11 // ----------------------------------------------------------------------------
     12 /**
     13  * @author Vlad Roubtsov, (C) 2003
     14  */
     15 public
     16 final class TextContent implements IContent
     17 {
     18     // public: ................................................................
     19 
     20     public TextContent (final String text)
     21     {
     22         m_text = text;
     23     }
     24 
     25     public void emit (final HTMLWriter out)
     26     {
     27         if (m_text != null)
     28         {
     29             out.write (m_text);
     30         }
     31     }
     32 
     33     // protected: .............................................................
     34 
     35     // package: ...............................................................
     36 
     37     // private: ...............................................................
     38 
     39 
     40     private final String m_text;
     41 
     42 } // end of class
     43 // ----------------------------------------------------------------------------