com.fasterxml.jackson.module.jsonSchema.types.NullSchema Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jackson-module-jsonSchema Show documentation
Show all versions of jackson-module-jsonSchema Show documentation
Add-on module for Jackson (http://jackson.codehaus.org) to support
JSON Schema (http://tools.ietf.org/html/draft-zyp-json-schema-03) version 3 generation.
package com.fasterxml.jackson.module.jsonSchema.types;
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes;
import com.fasterxml.jackson.module.jsonSchema.JsonSchema;
/**
* This class represents a {@link JsonSchema} as a null type
* @author jphelan
*/
public class NullSchema extends SimpleTypeSchema
{
@Override
public NullSchema asNullSchema() { return this; }
@Override
public boolean equals(Object obj) {
return (obj instanceof NullSchema && super.equals(obj));
}
@Override
public JsonFormatTypes getType() {
return JsonFormatTypes.NULL;
}
@Override
public boolean isNullSchema() { return true; }
}