io.vulpine.lib.json.schema.v4.impl.IntegerChildSchemaImpl 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.IntegerChildSchema;
import io.vulpine.lib.json.schema.SchemaBuilder;
import io.vulpine.lib.json.schema.v4.IntegerSchema;
import io.vulpine.lib.json.schema.v4.UntypedChildSchema;
import io.vulpine.lib.json.schema.v4.impl.lib.Setter;
import java.math.BigDecimal;
import java.math.BigInteger;
class IntegerChildSchemaImpl
extends IntegerSchemaImpl
implements IntegerChildSchema
{
private final P parent;
private final Setter setter;
IntegerChildSchemaImpl(P a, ObjectMapper b, ObjectNode c, Setter d)
{
super(b, c);
parent = a;
setter = d;
}
// ┌─────────────────────────────────────────────────────┐
// │ │
// │ Interface implementations │
// │ │
// └─────────────────────────────────────────────────────┘
@Override
public P close()
{
setter.accept(this);
return parent;
}
// ┌─────────────────────────────────────────────────────┐
// │ │
// │ Return type overrides │
// │ │
// └─────────────────────────────────────────────────────┘
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
defaultValue(int v)
{
return (IntegerChildSchema
) super.defaultValue(v);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
defaultValue(long v)
{
return (IntegerChildSchema
) super.defaultValue(v);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
defaultValue(BigInteger v)
{
return (IntegerChildSchema
) super.defaultValue(v);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
maximum(int x)
{
return (IntegerChildSchema
) super.maximum(x);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
maximum(long x)
{
return (IntegerChildSchema
) super.maximum(x);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
maximum(BigInteger x)
{
return (IntegerChildSchema
) super.maximum(x);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
removeMaximum()
{
return (IntegerChildSchema
) super.removeMaximum();
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
exclusiveMaximum(boolean f)
{
return (IntegerChildSchema
) super.exclusiveMaximum(f);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
removeExclusiveMaximum()
{
return (IntegerChildSchema
) super.removeExclusiveMaximum();
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
minimum(int x)
{
return (IntegerChildSchema
) super.minimum(x);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
minimum(long x)
{
return (IntegerChildSchema
) super.minimum(x);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
minimum(BigInteger x)
{
return (IntegerChildSchema
) super.minimum(x);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
removeMinimum()
{
return (IntegerChildSchema
) super.removeMinimum();
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
exclusiveMinimum(boolean x)
{
return (IntegerChildSchema
) super.exclusiveMinimum(x);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
removeExclusiveMinimum()
{
return (IntegerChildSchema
) super.removeExclusiveMinimum();
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
multipleOf(double x)
{
return (IntegerChildSchema
) super.multipleOf(x);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
multipleOf(float x)
{
return (IntegerChildSchema
) super.multipleOf(x);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
multipleOf(int x)
{
return (IntegerChildSchema
) super.multipleOf(x);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
multipleOf(long x)
{
return (IntegerChildSchema
) super.multipleOf(x);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
multipleOf(BigInteger x)
{
return (IntegerChildSchema
) super.multipleOf(x);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
multipleOf(BigDecimal x)
{
return (IntegerChildSchema
) super.multipleOf(x);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
removeMultipleOf()
{
return (IntegerChildSchema
) super.removeMultipleOf();
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
enumValues(int... val)
{
return (IntegerChildSchema
) super.enumValues(val);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
enumValues(long... val)
{
return (IntegerChildSchema
) super.enumValues(val);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
enumValues(BigInteger... val)
{
return (IntegerChildSchema
) super.enumValues(val);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
id(String id)
{
return (IntegerChildSchema
) super.id(id);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
removeId()
{
return (IntegerChildSchema
) super.removeId();
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
$schema(String path)
{
return (IntegerChildSchema
) super.$schema(path);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
remove$Schema()
{
return (IntegerChildSchema
) super.remove$Schema();
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
$ref(String path)
{
return (IntegerChildSchema
) super.$ref(path);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
remove$Ref()
{
return (IntegerChildSchema
) super.remove$Ref();
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
description(String desc)
{
return (IntegerChildSchema
) super.description(desc);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
removeDescription()
{
return (IntegerChildSchema
) super.removeDescription();
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
title(String title)
{
return (IntegerChildSchema
) super.title(title);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
removeTitle()
{
return (IntegerChildSchema
) super.removeTitle();
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
removeDefault()
{
return (IntegerChildSchema
) super.removeDefault();
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
removeEnum()
{
return (IntegerChildSchema
) super.removeEnum();
}
@Override
public ArrayChildSchemaImpl
orAsArray()
{
return new ArrayChildSchemaImpl<>(parent, jax(), copy(), setter);
}
@Override
public BooleanChildSchemaImpl
orAsBoolean()
{
return new BooleanChildSchemaImpl<>(parent, jax(), copy(), setter);
}
@Override
public NullChildSchemaImpl
orAsNull()
{
return new NullChildSchemaImpl<>(parent, jax(), copy(), setter);
}
@Override
public NumberChildSchemaImpl
orAsNumber()
{
return new NumberChildSchemaImpl<>(parent, jax(), copy(), setter);
}
@Override
public ObjectChildSchemaImpl
orAsObject()
{
return new ObjectChildSchemaImpl<>(parent, jax(), copy(), setter);
}
@Override
public StringChildSchemaImpl
orAsString()
{
return new StringChildSchemaImpl<>(parent, jax(), copy(), setter);
}
@Override
@SuppressWarnings("unchecked")
public UntypedChildSchema extends IntegerChildSchema
>
definition(String name)
{
return (UntypedChildSchema extends IntegerChildSchema
>)
super.definition(name);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
definition(String name, SchemaBuilder schema)
{
return (IntegerChildSchema
) super.definition(name, schema);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
removeDefinition(String name)
{
return (IntegerChildSchema
) super.removeDefinition(name);
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
removeDefinitions()
{
return (IntegerChildSchema
) super.removeDefinitions();
}
@Override
@SuppressWarnings("unchecked")
public IntegerChildSchema
defaultValue(JsonNode val)
{
return (IntegerChildSchema
) super.defaultValue(val);
}
@Override
@SuppressWarnings("unchecked")
public UntypedChildSchema extends IntegerChildSchema
> not()
{
return (UntypedChildSchema extends IntegerChildSchema
>) super.not();
}
}