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

org.openl.rules.webstudio.WebStudioFormats Maven / Gradle / Ivy

There is a newer version: 5.27.9
Show newest version
package org.openl.rules.webstudio;

import org.openl.rules.table.formatters.Formats;
import org.openl.rules.webstudio.web.Props;
import org.openl.rules.webstudio.web.admin.AdministrationSettings;

public final class WebStudioFormats implements Formats {
    private static final WebStudioFormats INSTANCE = new WebStudioFormats();

    private WebStudioFormats() {
    }

    public static WebStudioFormats getInstance() {
        return INSTANCE;
    }

    @Override
    public String date() {
        return Props.text(AdministrationSettings.DATE_PATTERN);
    }

    @Override
    public String dateTime() {
        return Props.text(AdministrationSettings.DATETIME_PATTERN);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy