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

com.github.fge.jsonschema.syntax.SyntaxMessageBundle Maven / Gradle / Ivy

There is a newer version: 1.2.5
Show newest version
package com.github.fge.jsonschema.syntax;

import com.github.fge.msgsimple.bundle.MessageBundle;
import com.github.fge.msgsimple.source.MessageSource;
import com.github.fge.msgsimple.source.PropertiesMessageSource;

import java.io.IOException;

public final class SyntaxMessageBundle
{
    private static final MessageBundle BUNDLE;

    static {
        final MessageSource source;
        try {
            source = PropertiesMessageSource.fromResource("/syntax.properties");
        } catch (IOException e) {
            throw new ExceptionInInitializerError(e);
        }

        BUNDLE = new MessageBundle.Builder().appendSource(source).build();
    }

    private SyntaxMessageBundle()
    {
    }

    public static MessageBundle get()
    {
        return BUNDLE;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy