com.dimajix.shaded.everit.schema.event.ConditionalSchemaMatchEvent Maven / Gradle / Ivy
package com.dimajix.shaded.everit.schema.event;
import com.dimajix.shaded.everit.schema.ConditionalSchema;
import com.dimajix.shaded.json.JSONObject;
public class ConditionalSchemaMatchEvent extends ConditionalSchemaValidationEvent {
public ConditionalSchemaMatchEvent(ConditionalSchema schema, Object instance, Keyword keyword) {
super(schema, instance, keyword);
}
@Override void describeTo(JSONObject obj) {
obj.put("type", "match");
obj.put("keyword", keyword.toString());
}
@Override public boolean equals(Object o) {
return canEqual(o) && super.equals(o);
}
@Override boolean canEqual(Object o) {
return o instanceof ConditionalSchemaMatchEvent;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy