io.vulpine.lib.json.schema.v4.impl.NumberChildSchemaImpl Maven / Gradle / Ivy
package io.vulpine.lib.json.schema.v4.impl;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import io.vulpine.lib.json.schema.v4.*;
import io.vulpine.lib.json.schema.SchemaBuilder;
import io.vulpine.lib.json.schema.v4.impl.lib.Setter;
import java.math.BigDecimal;
import java.math.BigInteger;
class NumberChildSchemaImpl
extends NumberSchemaImpl
implements NumberChildSchema
{
private final P parent;
private final Setter setter;
NumberChildSchemaImpl(P a, ObjectMapper b, ObjectNode c, Setter d)
{
super(b, c);
this.parent = a;
this.setter = d;
}
// ┌─────────────────────────────────────────────────────┐
// │ │
// │ Interface implementations │
// │ │
// └─────────────────────────────────────────────────────┘
@Override
public P close()
{
setter.accept(this);
return parent;
}
// ┌─────────────────────────────────────────────────────┐
// │ │
// │ Return type overrides │
// │ │
// └─────────────────────────────────────────────────────┘
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
defaultValue(int val)
{
return (NumberChildSchema
) super.defaultValue(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
defaultValue(long val)
{
return (NumberChildSchema
) super.defaultValue(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
defaultValue(double val)
{
return (NumberChildSchema
) super.defaultValue(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
defaultValue(float val)
{
return (NumberChildSchema
) super.defaultValue(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
defaultValue(BigInteger val)
{
return (NumberChildSchema
) super.defaultValue(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
defaultValue(BigDecimal val)
{
return (NumberChildSchema
) super.defaultValue(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
maximum(double val)
{
return (NumberChildSchema
) super.maximum(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
maximum(float val)
{
return (NumberChildSchema
) super.maximum(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
maximum(int val)
{
return (NumberChildSchema
) super.maximum(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
maximum(long val)
{
return (NumberChildSchema
) super.maximum(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
maximum(BigInteger val)
{
return (NumberChildSchema
) super.maximum(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
maximum(BigDecimal val)
{
return (NumberChildSchema
) super.maximum(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
removeMaximum()
{
return (NumberChildSchema
) super.removeMaximum();
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
exclusiveMaximum(boolean val)
{
return (NumberChildSchema
) super.exclusiveMaximum(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
removeExclusiveMaximum()
{
return (NumberChildSchema
) super.removeExclusiveMaximum();
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
minimum(double val)
{
return (NumberChildSchema
) super.minimum(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
minimum(float val)
{
return (NumberChildSchema
) super.minimum(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
minimum(int val)
{
return (NumberChildSchema
) super.minimum(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
minimum(long val)
{
return (NumberChildSchema
) super.minimum(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
minimum(BigDecimal val)
{
return (NumberChildSchema
) super.minimum(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
minimum(BigInteger val)
{
return (NumberChildSchema
) super.minimum(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
removeMinimum()
{
return (NumberChildSchema
) super.removeMinimum();
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
exclusiveMinimum(boolean val)
{
return (NumberChildSchema
) super.exclusiveMinimum(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
removeExclusiveMinimum()
{
return (NumberChildSchema
) super.removeExclusiveMinimum();
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
multipleOf(int val)
{
return (NumberChildSchema
) super.multipleOf(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
multipleOf(long val)
{
return (NumberChildSchema
) super.multipleOf(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
multipleOf(float val)
{
return (NumberChildSchema
) super.multipleOf(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
multipleOf(double val)
{
return (NumberChildSchema
) super.multipleOf(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
multipleOf(BigInteger val)
{
return (NumberChildSchema
) super.multipleOf(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
multipleOf(BigDecimal val)
{
return (NumberChildSchema
) super.multipleOf(val);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
removeMultipleOf()
{
return (NumberChildSchema
) super.removeMultipleOf();
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
enumValues(Number... vals)
{
return (NumberChildSchema
) super.enumValues(vals);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
id(String id)
{
return (NumberChildSchema
) super.id(id);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
removeId()
{
return (NumberChildSchema
) super.removeId();
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
$schema(String path)
{
return (NumberChildSchema
) super.$schema(path);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
remove$Schema()
{
return (NumberChildSchema
) super.remove$Schema();
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
$ref(String path)
{
return (NumberChildSchema
) super.$ref(path);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
remove$Ref()
{
return (NumberChildSchema
) super.remove$Ref();
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
description(String desc)
{
return (NumberChildSchema
) super.description(desc);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
removeDescription()
{
return (NumberChildSchema
) super.removeDescription();
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
title(String title)
{
return (NumberChildSchema
) super.title(title);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
removeTitle()
{
return (NumberChildSchema
) super.removeTitle();
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
removeDefault()
{
return (NumberChildSchema
) super.removeDefault();
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
removeEnum()
{
return (NumberChildSchema
) super.removeEnum();
}
@Override
@SuppressWarnings("unchecked")
public UntypedChildSchema extends NumberChildSchema
>
definition(String name)
{
return (UntypedChildSchema extends NumberChildSchema
>)
super.definition(name);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
definition(String name, SchemaBuilder schema)
{
return (NumberChildSchema
) super.definition(name, schema);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
removeDefinition(String name)
{
return (NumberChildSchema
) super.removeDefinition(name);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
removeDefinitions()
{
return (NumberChildSchema
) super.removeDefinitions();
}
@Override
public ArrayChildSchema
orAsArray()
{
return new ArrayChildSchemaImpl<>(parent, jax(), copy(), setter);
}
@Override
public BooleanChildSchema
orAsBoolean()
{
return new BooleanChildSchemaImpl<>(parent, jax(), copy(), setter);
}
@Override
public IntegerChildSchema
orAsInteger()
{
return new IntegerChildSchemaImpl<>(parent, jax(), copy(), setter);
}
@Override
public NullChildSchema
orAsNull()
{
return new NullChildSchemaImpl<>(parent, jax(), copy(), setter);
}
@Override
public ObjectChildSchema
orAsObject()
{
return new ObjectChildSchemaImpl<>(parent, jax(), copy(), setter);
}
@Override
public StringChildSchema
orAsString()
{
return new StringChildSchemaImpl<>(parent, jax(), copy(), setter);
}
@Override
@SuppressWarnings("unchecked")
public NumberChildSchema
defaultValue(JsonNode val)
{
return (NumberChildSchema
) super.defaultValue(val);
}
@Override
@SuppressWarnings("unchecked")
public UntypedChildSchema extends NumberChildSchema
> not()
{
return (UntypedChildSchema extends NumberChildSchema
>) super.not();
}
}