Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package io.relayr.java.model.models.schema;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import io.relayr.java.model.models.transport.DeviceReading;
/**
* Implements JSON Schema as defined
* in @see documentation
*/
public class ValueSchema implements Serializable, SchemaValidator {
/** Validation keywords for numeric instances (number and integer) */
protected Number minimum;
//If "exclusiveMinimum" is present, "minimum" MUST also be present.
//if "exclusiveMinimum" is not present, or has boolean value false, then the instance is valid if it is greater than, or equal to, the value of "minimum";
//if "exclusiveMinimum" is present and has boolean value true, the instance is valid if it is strictly greater than the value of "minimum".
protected Boolean exclusiveMinimum;
protected Number maximum;
//If "exclusiveMaximum" is present, "maximum" MUST also be present.
//if "exclusiveMaximum" is not present, or has boolean value false, then the instance is valid if it is lower than, or equal to, the value of "maximum";
//if "exclusiveMaximum" has boolean value true, the instance is valid if it is strictly lower than the value of "maximum".
protected Boolean exclusiveMaximum;
//This number MUST be strictly greater than 0.
protected Number multipleOf;
/** Validation keywords for strings */
//This integer MUST be greater than, or equal to, 0.
protected Integer maxLength;
//This integer MUST be greater than, or equal to, 0.
protected Integer minLength;
//This string SHOULD be a valid regular expression, according to the ECMA 262 regular expression dialect.
protected String pattern;
/** Validation keywords for arrays */
//The value of "additionalItems" MUST be either a boolean or an object. If it is an object, this object MUST be a valid JSON Schema.
protected Object additionalItems;
//The value of "items" MUST be either an object or an array. If it is an object, this object MUST be a valid JSON Schema.
//If it is an array, items of this array MUST be objects, and each of these objects MUST be a valid JSON Schema.
protected Object items;
//This integer MUST be greater than, or equal to, 0.
protected Integer maxItems;
//This integer MUST be greater than, or equal to, 0.
protected Integer minItems;
protected boolean uniqueItems;
/** Validation keywords for objects */
//This integer MUST be greater than, or equal to, 0.
protected int maxProperties;
//This integer MUST be greater than, or equal to, 0.
protected int minProperties;
//Elements of this array MUST be strings, and MUST be unique.
protected List required;
//MUST be a boolean or an object. If it is an object, it MUST also be a valid JSON Schema.
protected Object additionalProperties;
//MUST be an object. Each value of this object MUST be an object, and each object MUST be a valid JSON Schema.
protected Object properties;
//MUST be an object. Each property name of this object SHOULD be a valid regular expression,
//according to the ECMA 262 regular expression dialect. Each property value of this object MUST be an object,
// and each object MUST be a valid JSON Schema.
protected Object patternProperties;
//MUST be an object. Each value of this object MUST be either an object or an array.
protected Object dependencies;
@SerializedName("default") protected Object defaultValue;
/** Validation keywords for any instance type */
protected List