Enum KeywordType

    • Method Detail

      • values

        public static KeywordType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (KeywordType c : KeywordType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static KeywordType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • newValidator

        public KeywordValidator newValidator​(SchemaLocation schemaLocation,
                                             com.fasterxml.jackson.databind.JsonNode schemaNode,
                                             Schema parentSchema,
                                             SchemaContext schemaContext)
        Description copied from interface: Keyword
        Creates a new validator for the keyword.
        Specified by:
        newValidator in interface Keyword
        Parameters:
        schemaLocation - the schema location
        schemaNode - the schema node
        parentSchema - the parent schema
        schemaContext - the schema context
        Returns:
        the validation
      • getValue

        public String getValue()
        Description copied from interface: Keyword
        Gets the keyword value.
        Specified by:
        getValue in interface Keyword
        Returns:
        the keyword value