public AbstractNumericProperty exclusiveMaximum(Boolean exclusiveMaximum) { this.setExclusiveMaximum(exclusiveMaximum); return this; }
protected <N extends AbstractNumericProperty> N mergeNumeric(N property, Map<PropertyId, Object> args) { if (args.containsKey(PropertyId.MINIMUM)) { final BigDecimal value = PropertyId.MINIMUM.findValue(args); if(value != null) { property.setMinimum(value); } } if (args.containsKey(PropertyId.MAXIMUM)) { final BigDecimal value = PropertyId.MAXIMUM.findValue(args); if(value != null) { property.setMaximum(value); } } if (args.containsKey(PropertyId.EXCLUSIVE_MINIMUM)) { final Boolean value = PropertyId.EXCLUSIVE_MINIMUM.findValue(args); property.setExclusiveMinimum(value); } if (args.containsKey(PropertyId.EXCLUSIVE_MAXIMUM)) { final Boolean value = PropertyId.EXCLUSIVE_MAXIMUM.findValue(args); property.setExclusiveMaximum(value); } if (args.containsKey(PropertyId.MULTIPLE_OF)) { final BigDecimal value = PropertyId.MULTIPLE_OF.findValue(args); if(value != null) { property.setMultipleOf(value); } } return property; }
BigDecimal _bigDecimal_1 = new BigDecimal(_maxValue_1); ((AbstractNumericProperty)property).setMaximum(_bigDecimal_1); ((AbstractNumericProperty)property).setExclusiveMaximum(Boolean.valueOf(it.isMaxValueExclusive()));
(((AbstractNumericProperty) schema)) .setMaximum(new BigDecimal(validatorDescriptor.getMax().doubleValue())); (((AbstractNumericProperty) schema)).setExclusiveMaximum(validatorDescriptor.isExclusiveMax()); } else if (schema instanceof StringProperty) { ((StringProperty) schema)
protected AbstractProperty fillProperty(AbstractProperty property, Framework.Mapping<?> mapping) { property.setDescription(attach(mapping).desc()); property.setFormat(format(mapping)); property.setRequired(required(mapping)); property.setExample(attach(mapping).example()); if (property instanceof AbstractNumericProperty) { AbstractNumericProperty numericProperty = (AbstractNumericProperty) property; numericProperty.setMaximum(maximum(mapping)); numericProperty.setExclusiveMaximum(exclusiveMaximum(mapping)); numericProperty.setMinimum(minimum(mapping)); numericProperty.setExclusiveMinimum(exclusiveMinimum(mapping)); } if (property instanceof StringProperty) { StringProperty stringProperty = (StringProperty) property; stringProperty.setPattern(pattern(mapping)); stringProperty.setEnum(enums(mapping)); stringProperty.setMaxLength(maxLength(mapping)); stringProperty.setMinLength(minLength(mapping)); } return property; }
numericProperty.setMultipleOf(modelImpl.getMultipleOf()); numericProperty.setExclusiveMinimum(modelImpl.getExclusiveMinimum()); numericProperty.setExclusiveMaximum(modelImpl.getExclusiveMaximum()); return numericProperty;