/*
 * Created on 2003/06/14
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package jp.sourceforge.projects.ee2e.core.cdt.doc;
import java.io.Writer;
import java.io.IOException;
import java.io.BufferedReader;

/**
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 *
 * @author Toshikazu Ando [ ando@park.ruru.ne.jp ]
 */
//package private
class EE2EString implements EE2EDocument {
    public EE2EString(String myString) {
        this.myString = myString;
    }
    /* (non-Javadoc)
     * @see jp.sourceforge.projects.ee2e.core.cdt.doc.EE2EDocument#createComposit(java.io.BufferedReader)
     */
    public boolean createComposit(BufferedReader reader) throws IOException {
        return true;
    }

    /* (non-Javadoc)
     * @see jp.sourceforge.projects.ee2e.core.cdt.doc.EE2EDocument#destoryTarget(java.lang.String, boolean)
     */
    public void destoryTarget(String target, boolean ifOrElse) {
        /*EMPTY*/
    }
    /* (non-Javadoc)
     * @see jp.sourceforge.projects.ee2e.core.cdt.doc.EE2EDocument#getWriter(java.io.Writer)
     */
    public void getWriter(Writer writer,boolean flag) throws IOException {
        if(writer == null) {
            return;
        }
        writer.write(myString);
        writer.write("\n");
    }
    /* (non-Javadoc)
     * @see jp.sourceforge.projects.ee2e.core.cdt.doc.EE2EDocument#getDefines()
     */
    public void getDefines(java.util.Collection  collection) {
        return;
    }
    private String myString;
}
