All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jspringbot.syntax.KeywordAppender Maven / Gradle / Ivy

There is a newer version: 1.9
Show newest version
package org.jspringbot.syntax;

import org.jspringbot.syntax.HighlightRobotLogger.HtmlAppender;

public class KeywordAppender {
    private HtmlAppender appender;

    KeywordAppender(HtmlAppender appender) {
        this.appender = appender;
    }

    public boolean isSilent() {
        return appender.isSilent();
    }

    public void setSilent(boolean silent) {
        appender.setSilent(silent);
    }

    public KeywordAppender append(String msg, Object... args) {
        if(appender == null) {
            return this;
        }

        appender.append(msg, args);

        return this;
    }

    public KeywordAppender appendBold(String msg, Object... args) {
        if(appender == null) {
            return this;
        }

        appender.appendBold(msg, args);

        return this;
    }

    public KeywordAppender appendPropertyStringArray(String name, String[] values) {
        if(appender == null) {
            return this;
        }

        appender.appendPropertyStringArray(name, values);

        return this;
    }

    public KeywordAppender appendProperty(String property, Object value) {
        if(appender == null) {
            return this;
        }

        appender.appendProperty(property, value);

        return this;
    }

    public KeywordAppender appendText(String msg, Object... args) {
        if(appender == null) {
            return this;
        }

        appender.appendText(msg, args);

        return this;
    }

    public KeywordAppender appendCode(String msg, Object... args) {
        if(appender == null) {
            return this;
        }

        appender.appendCode(msg, args);

        return this;
    }

    public KeywordAppender appendXML(String msg, Object... args) {
        if(appender == null) {
            return this;
        }

        appender.appendXML(msg, args);

        return this;
    }

    public KeywordAppender appendSQL(String msg, Object... args) {
        if(appender == null) {
            return this;
        }

        appender.appendSQL(msg, args);

        return this;
    }

    public KeywordAppender appendJavascript(String msg, Object... args) {
        if(appender == null) {
            return this;
        }

        appender.appendJavascript(msg, args);

        return this;
    }

    public KeywordAppender appendCss(String msg, Object... args) {
        if(appender == null) {
            return this;
        }

        appender.appendCss(msg, args);

        return this;
    }

    public KeywordAppender appendJSON(String msg, Object... args) {
        if(appender == null) {
            return this;
        }

        appender.appendJSON(msg, args);

        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy