
com.reprezen.kaizen.oasparser.val.IntegerValidator Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2017 ModelSolv, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* ModelSolv, Inc. - initial API and implementation and/or initial documentation
*******************************************************************************/
package com.reprezen.kaizen.oasparser.val;
import java.util.Set;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.BigIntegerNode;
import com.fasterxml.jackson.databind.node.IntNode;
import com.fasterxml.jackson.databind.node.ShortNode;
import com.google.common.collect.Sets;
import com.reprezen.jsonoverlay.IntegerOverlay;
public class IntegerValidator extends OverlayValidator {
@SuppressWarnings("unchecked")
private static Set> intTypes = Sets.> newHashSet( //
IntNode.class, ShortNode.class, BigIntegerNode.class);
@Override
public void validate(IntegerOverlay overlay, ValidationResults results) {
super.validate(overlay, results, intTypes);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy