com.dimajix.shaded.everit.schema.event.CombinedSchemaMatchEvent Maven / Gradle / Ivy
package com.dimajix.shaded.everit.schema.event;
import com.dimajix.shaded.everit.schema.CombinedSchema;
import com.dimajix.shaded.everit.schema.Schema;
import com.dimajix.shaded.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