io.sqp.schemamatcher.typematchers.ObjectTypeMatcher.java Source code

Java tutorial

Introduction

Here is the source code for io.sqp.schemamatcher.typematchers.ObjectTypeMatcher.java

Source

/*
 * Copyright 2015 by Rothmeyer Consulting (http://www.rothmeyer.com/)
 * Author: Stefan Burnicki <stefan.burnicki@burnicki.net>
 *
 * This file is part of SQP.
 *
 * SQP is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License.
 *
 * SQP is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with SQP.  If not, see <http://www.gnu.org/licenses/>.
 */

package io.sqp.schemamatcher.typematchers;

import com.fasterxml.jackson.databind.JsonNode;
import io.sqp.schemamatcher.JsonType;

/**
 * @author Stefan Burnicki
 */
public class ObjectTypeMatcher extends NonTrivialTypeMatcher {
    public ObjectTypeMatcher(JsonNode schema) {
        super(JsonType.Object, schema);
        throw new UnsupportedOperationException("Object matching is not yet implemented");
    }

    @Override
    protected boolean checkFields(JsonNode other) {
        throw new UnsupportedOperationException("Object matching is not yet implemented");
    }
}