All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.everit.json.schema.event.CombinedSchemaMatchEvent Maven / Gradle / Ivy

Go to download

Implementation of the JSON Schema Core Draft v4 specification built with the org.json API

There is a newer version: 1.14.4
Show newest version
package org.everit.json.schema.event;

import org.everit.json.schema.CombinedSchema;
import org.everit.json.schema.Schema;
import org.json.JSONObject;

public class CombinedSchemaMatchEvent extends CombinedSchemaValidationEvent {

    public CombinedSchemaMatchEvent(CombinedSchema schema, Schema subSchema,
            Object instance) {
        super(schema, subSchema, instance);
    }

    @Override void describeTo(JSONObject obj) {
        obj.put("type", "match");
        obj.put("keyword", schema.getCriterion().toString());
    }

    @Override public boolean equals(Object o) {
        return o instanceof CombinedSchemaMatchEvent && super.equals(o);
    }

    @Override boolean canEqual(Object o) {
        return o instanceof CombinedSchemaMatchEvent;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy