org.everit.json.schema.event.CombinedSchemaValidationEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of everit-json-schema Show documentation
Show all versions of everit-json-schema Show documentation
Implementation of the JSON Schema Core Draft v4 specification built with the org.json API
package org.everit.json.schema.event;
import java.util.Objects;
import org.everit.json.schema.CombinedSchema;
import org.everit.json.schema.Schema;
public abstract class CombinedSchemaValidationEvent extends ValidationEvent {
final Schema subSchema;
public CombinedSchemaValidationEvent(CombinedSchema schema, Schema subSchema, Object instance) {
super(schema, instance);
this.subSchema = subSchema;
}
@Override public boolean equals(Object o) {
if (this == o)
return true;
if (!(o instanceof CombinedSchemaValidationEvent))
return false;
if (!super.equals(o))
return false;
CombinedSchemaValidationEvent that = (CombinedSchemaValidationEvent) o;
return subSchema.equals(that.subSchema);
}
@Override public int hashCode() {
return Objects.hash(super.hashCode(), subSchema);
}
public Schema getSubSchema() {
return subSchema;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy