Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (c) 2014, Francis Galiegue (fgaliegue@gmail.com)
  *
  * This software is dual-licensed under:
  *
  * - the Lesser General Public License (LGPL) version 3.0 or, at your option, any
  *   later version;
  * - the Apache Software License (ASL) version 2.0.
  *
 * The text of this file and of both licenses is available at the root of this
 * project or, if you have the jar distribution, in directory META-INF/, under
 * the names LGPL-3.0.txt and ASL-2.0.txt respectively.
 *
 * Direct link to the sources:
 *
 * - LGPL 3.0: https://www.gnu.org/licenses/lgpl-3.0.txt
 * - ASL 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt
 */
package com.github.fge.jsonschema.library.format;
public final class ExtraFormatsDictionary
    private static final Dictionary<FormatAttributeDICTIONARY;
    private ExtraFormatsDictionary()
    {
    }
    static {
        final DictionaryBuilder<FormatAttributebuilder
            = Dictionary.newBuilder();
        String name;
        FormatAttribute attribute;
        name = "base64";
        attribute = Base64FormatAttribute.getInstance();
        builder.addEntry(nameattribute);
        name = "json-pointer";
        attribute = JsonPointerFormatAttribute.getInstance();
        builder.addEntry(nameattribute);
        name = "mac";
        attribute = MacAddressFormatAttribute.getInstance();
        builder.addEntry(nameattribute);
        name = "md5";
        attribute = MD5FormatAttribute.getInstance();
        builder.addEntry(nameattribute);
        name = "sha1";
        attribute = SHA1FormatAttribute.getInstance();
        builder.addEntry(nameattribute);
        name = "sha256";
        attribute = SHA256FormatAttribute.getInstance();
        builder.addEntry(nameattribute);
        name = "sha512";
        attribute = SHA512FormatAttribute.getInstance();
        builder.addEntry(nameattribute);
        name = "uuid";
        attribute = UUIDFormatAttribute.getInstance();
        builder.addEntry(nameattribute);
         = builder.freeze();
    }
    public static Dictionary<FormatAttributeget()
    {
        return ;
    }
New to GrepCode? Check out our FAQ X