public IntegerSchema integerSchema() { return new IntegerSchema(); }
@Override public boolean equals(Object obj) { if (obj == this) return true; if (obj == null) return false; if (!(obj instanceof IntegerSchema)) return false; return _equals((IntegerSchema) obj); }
protected boolean _equals(IntegerSchema that) { return equals(getDivisibleBy(), that.getDivisibleBy()) && super.equals(that); } }
.toLowerCase() : null; if (RamlUtils.integerTypesList.contains(type)) { IntegerSchema integerSchema = new IntegerSchema(); integerSchema.setTitle(name); if (property.getMin() != null) { integerSchema.setMinimum(Double.parseDouble(property.getMin())); integerSchema.setMaximum(Double.parseDouble(property.getMax()));
.toLowerCase() : null; if (RamlUtils.integerTypesList.contains(type)) { IntegerSchema integerSchema = new IntegerSchema(); integerSchema.setTitle(name); if (property.getMin() != null) { integerSchema.setMinimum(Double.parseDouble(property.getMin())); integerSchema.setMaximum(Double.parseDouble(property.getMax()));
.toLowerCase() : null; if (RamlUtils.integerTypesList.contains(type)) { IntegerSchema integerSchema = new IntegerSchema(); integerSchema.setTitle(name); if (property.getMin() != null) { integerSchema.setMinimum(Double.parseDouble(property.getMin())); integerSchema.setMaximum(Double.parseDouble(property.getMax()));
public IntegerSchema integerSchema() { return new IntegerSchema(); }
protected boolean _equals(IntegerSchema that) { return equals(getDivisibleBy(), that.getDivisibleBy()) && super.equals(that); } }
@Override public boolean equals(Object obj) { if (obj == this) return true; if (obj == null) return false; if (!(obj instanceof IntegerSchema)) return false; return _equals((IntegerSchema) obj); }
.toLowerCase() : null; if (RamlUtils.integerTypesList.contains(type)) { IntegerSchema integerSchema = new IntegerSchema(); integerSchema.setTitle(name); if (property.getMin() != null) { integerSchema.setMinimum(Double.parseDouble(property.getMin())); integerSchema.setMaximum(Double.parseDouble(property.getMax()));
/** * Create a schema which verifies only that an object is of the given format. * @param format the format to expect * @return the schema verifying the given format */ public static JsonSchema minimalForFormat(JsonFormatTypes format) { if (format != null) { switch (format) { case ARRAY: return new ArraySchema(); case OBJECT: return new ObjectSchema(); case BOOLEAN: return new BooleanSchema(); case INTEGER: return new IntegerSchema(); case NUMBER: return new NumberSchema(); case STRING: return new StringSchema(); case NULL: return new NullSchema(); case ANY: default: } } return new AnySchema(); }
.toLowerCase() : null; if (RamlUtils.integerTypesList.contains(type)) { IntegerSchema integerSchema = new IntegerSchema(); integerSchema.setTitle(name); if (property.getMin() != null) { integerSchema.setMinimum(Double.parseDouble(property.getMin())); integerSchema.setMaximum(Double.parseDouble(property.getMax()));
/** * Create a schema which verifies only that an object is of the given format. * @param format the format to expect * @return the schema verifying the given format */ public static JsonSchema minimalForFormat(JsonFormatTypes format) { if (format != null) { switch (format) { case ARRAY: return new ArraySchema(); case OBJECT: return new ObjectSchema(); case BOOLEAN: return new BooleanSchema(); case INTEGER: return new IntegerSchema(); case NUMBER: return new NumberSchema(); case STRING: return new StringSchema(); case NULL: return new NullSchema(); case ANY: default: } } return new AnySchema(); }