class XMLDeclarationStructureHandler implements IXMLDeclarationStructureHandler {


    boolean setXMLDeclaration;
    String setXMLDeclarationKeyword;
    String setXMLDeclarationVersion;
    String setXMLDeclarationEncoding;
    String setXMLDeclarationStandalone;

    boolean replaceWithModel;
    IModel replaceWithModelValue;
    boolean replaceWithModelProcessable;

    boolean removeXMLDeclaration;




    XMLDeclarationStructureHandler() {
        super();
        reset();
    }




    public void setXMLDeclaration(
            final String keyword, final String version, final String encoding, final String standalone) {
        reset();
        Validate.notNull(keyword, "Keyword cannot be null");
        this.setXMLDeclaration = true;
        this.setXMLDeclarationKeyword = keyword;
        this.setXMLDeclarationVersion = version;
        this.setXMLDeclarationEncoding = encoding;
        this.setXMLDeclarationStandalone = standalone;
    }


    public void replaceWith(final IModel model, final boolean processable) {<FILL_FUNCTION_BODY>}


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




    public void reset() {

        this.setXMLDeclaration = false;
        this.setXMLDeclarationKeyword = null;
        this.setXMLDeclarationVersion = null;
        this.setXMLDeclarationEncoding = null;
        this.setXMLDeclarationStandalone = null;

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

        this.removeXMLDeclaration = false;

    }


}

        reset();
        Validate.notNull(model, "Model cannot be null");
        this.replaceWithModel = true;
        this.replaceWithModelValue = model;
        this.replaceWithModelProcessable = processable;
    
<no_super_class>