xpertss.json.schema.library.format.DraftV7FormatAttributesDictionary Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-schema Show documentation
Show all versions of json-schema Show documentation
A Java implementation of the JSON Schema specification.
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.draftv7.DateAttribute;
import xpertss.json.schema.format.draftv7.TimeAttribute;
/**
* Draft v4 specific format attributes
*/
public final class DraftV7FormatAttributesDictionary {
private static final Dictionary DICTIONARY;
private DraftV7FormatAttributesDictionary()
{
}
static {
DictionaryBuilder builder = Dictionary.newBuilder();
builder.addAll(DraftV6FormatAttributesDictionary.get());
builder.addEntry("time", TimeAttribute.getInstance());
builder.addEntry("date", DateAttribute.getInstance());
DICTIONARY = builder.freeze();
}
public static Dictionary get()
{
return DICTIONARY;
}
}