class TextStructureHandler implements ITextStructureHandler {


    boolean setText;
    CharSequence setTextValue;

    boolean replaceWithModel;
    IModel replaceWithModelValue;
    boolean replaceWithModelProcessable;

    boolean removeText;




    TextStructureHandler() {
        super();
        reset();
    }



    public void setText(final CharSequence text) {
        reset();
        Validate.notNull(text, "Text cannot be null");
        this.setText = true;
        this.setTextValue = text;
    }


    public void replaceWith(final IModel model, final boolean processable) {
        reset();
        Validate.notNull(model, "Model cannot be null");
        this.replaceWithModel = true;
        this.replaceWithModelValue = model;
        this.replaceWithModelProcessable = processable;
    }


    public void removeText() {
        reset();
        this.removeText = true;
    }




    public void reset() {<FILL_FUNCTION_BODY>}


}


        this.setText = false;
        this.setTextValue = null;

        this.replaceWithModel = false;
        this.replaceWithModelValue = null;
        this.replaceWithModelProcessable = false;

        this.removeText = false;

    
<no_super_class>