hydra.langs.owl.syntax.NegativeDataPropertyAssertion Maven / Gradle / Ivy
package hydra.langs.owl.syntax;
import java.io.Serializable;
public class NegativeDataPropertyAssertion implements Serializable {
public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/owl/syntax.NegativeDataPropertyAssertion");
public final java.util.List annotations;
public final hydra.langs.owl.syntax.DataPropertyExpression property;
public final hydra.langs.owl.syntax.Individual source;
public final hydra.langs.owl.syntax.Individual target;
public NegativeDataPropertyAssertion (java.util.List annotations, hydra.langs.owl.syntax.DataPropertyExpression property, hydra.langs.owl.syntax.Individual source, hydra.langs.owl.syntax.Individual target) {
this.annotations = annotations;
this.property = property;
this.source = source;
this.target = target;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof NegativeDataPropertyAssertion)) {
return false;
}
NegativeDataPropertyAssertion o = (NegativeDataPropertyAssertion) (other);
return annotations.equals(o.annotations) && property.equals(o.property) && source.equals(o.source) && target.equals(o.target);
}
@Override
public int hashCode() {
return 2 * annotations.hashCode() + 3 * property.hashCode() + 5 * source.hashCode() + 7 * target.hashCode();
}
public NegativeDataPropertyAssertion withAnnotations(java.util.List annotations) {
return new NegativeDataPropertyAssertion(annotations, property, source, target);
}
public NegativeDataPropertyAssertion withProperty(hydra.langs.owl.syntax.DataPropertyExpression property) {
return new NegativeDataPropertyAssertion(annotations, property, source, target);
}
public NegativeDataPropertyAssertion withSource(hydra.langs.owl.syntax.Individual source) {
return new NegativeDataPropertyAssertion(annotations, property, source, target);
}
public NegativeDataPropertyAssertion withTarget(hydra.langs.owl.syntax.Individual target) {
return new NegativeDataPropertyAssertion(annotations, property, source, target);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy