com.github.fge.util.SimpleValueHolder Maven / Gradle / Ivy
package com.github.fge.util;
import com.fasterxml.jackson.databind.JsonNode;
import com.github.fge.jsonschema.util.ValueHolder;
public final class SimpleValueHolder
extends ValueHolder
{
public SimpleValueHolder(final T value)
{
super("valueType", value);
}
@Override
protected JsonNode valueAsJson()
{
return FACTORY.textNode(value.getClass().getCanonicalName());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy