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

com.fasterxml.jackson.module.jsonSchema.validation.ValidationConstraintResolver Maven / Gradle / Ivy

Go to download

Add-on module for Jackson (http://jackson.codehaus.org) to support JSON Schema (http://tools.ietf.org/html/draft-zyp-json-schema-03) version 3 generation.

The newest version!
package com.fasterxml.jackson.module.jsonSchema.validation;

import com.fasterxml.jackson.databind.BeanProperty;

/**
 * Note: implementations should 
 *
 * @author cponomaryov
 * 
 * @since 2.5 NOTE: changed from interface (2.5 - 2.7) to abstract class in 2.8
 */
public abstract class ValidationConstraintResolver
{
    public abstract Integer getArrayMaxItems(BeanProperty prop);

    public abstract Integer getArrayMinItems(BeanProperty prop);

    public abstract Double getNumberMaximum(BeanProperty prop);

    public abstract Double getNumberMinimum(BeanProperty prop);

    public abstract Integer getStringMaxLength(BeanProperty prop);

    public abstract Integer getStringMinLength(BeanProperty prop);

    public abstract String getStringPattern(BeanProperty prop);

    /**
     * @since 2.7
     */
    public abstract Boolean getRequired(BeanProperty prop);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy