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

xpertss.json.schema.library.format.DraftV6FormatAttributesDictionary Maven / Gradle / Ivy

The newest version!
package xpertss.json.schema.library.format;

import xpertss.json.schema.core.util.Dictionary;
import xpertss.json.schema.core.util.DictionaryBuilder;
import xpertss.json.schema.format.FormatAttribute;
import xpertss.json.schema.format.draftv6.JsonPointerFormatAttribute;
import xpertss.json.schema.format.draftv6.URITemplateFormatAttribute;

/**
 * Draft v4 specific format attributes
 */
public final class DraftV6FormatAttributesDictionary {

    private static final Dictionary DICTIONARY;

    private DraftV6FormatAttributesDictionary()
    {
    }

    static {
        DictionaryBuilder builder = Dictionary.newBuilder();

        builder.addAll(DraftV4FormatAttributesDictionary.get());
        builder.addEntry("json-pointer", JsonPointerFormatAttribute.getInstance());
        builder.addEntry("uri-template", URITemplateFormatAttribute.getInstance());


        DICTIONARY = builder.freeze();
    }

    public static Dictionary get()
    {
        return DICTIONARY;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy