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

hydra.ext.org.w3.owl.syntax.NegativeDataPropertyAssertion Maven / Gradle / Ivy

The newest version!
// Note: this is an automatically generated file. Do not edit.

package hydra.ext.org.w3.owl.syntax;

import java.io.Serializable;

public class NegativeDataPropertyAssertion implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/w3/owl/syntax.NegativeDataPropertyAssertion");
  
  public static final hydra.core.Name FIELD_NAME_ANNOTATIONS = new hydra.core.Name("annotations");
  
  public static final hydra.core.Name FIELD_NAME_PROPERTY = new hydra.core.Name("property");
  
  public static final hydra.core.Name FIELD_NAME_SOURCE = new hydra.core.Name("source");
  
  public static final hydra.core.Name FIELD_NAME_TARGET = new hydra.core.Name("target");
  
  public final java.util.List annotations;
  
  public final hydra.ext.org.w3.owl.syntax.DataPropertyExpression property;
  
  public final hydra.ext.org.w3.owl.syntax.Individual source;
  
  public final hydra.ext.org.w3.owl.syntax.Individual target;
  
  public NegativeDataPropertyAssertion (java.util.List annotations, hydra.ext.org.w3.owl.syntax.DataPropertyExpression property, hydra.ext.org.w3.owl.syntax.Individual source, hydra.ext.org.w3.owl.syntax.Individual target) {
    java.util.Objects.requireNonNull((annotations));
    java.util.Objects.requireNonNull((property));
    java.util.Objects.requireNonNull((source));
    java.util.Objects.requireNonNull((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) {
    java.util.Objects.requireNonNull((annotations));
    return new NegativeDataPropertyAssertion(annotations, property, source, target);
  }
  
  public NegativeDataPropertyAssertion withProperty(hydra.ext.org.w3.owl.syntax.DataPropertyExpression property) {
    java.util.Objects.requireNonNull((property));
    return new NegativeDataPropertyAssertion(annotations, property, source, target);
  }
  
  public NegativeDataPropertyAssertion withSource(hydra.ext.org.w3.owl.syntax.Individual source) {
    java.util.Objects.requireNonNull((source));
    return new NegativeDataPropertyAssertion(annotations, property, source, target);
  }
  
  public NegativeDataPropertyAssertion withTarget(hydra.ext.org.w3.owl.syntax.Individual target) {
    java.util.Objects.requireNonNull((target));
    return new NegativeDataPropertyAssertion(annotations, property, source, target);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy