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

hydra.ext.org.w3.owl.syntax.ObjectPropertyAssertion 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 ObjectPropertyAssertion implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/w3/owl/syntax.ObjectPropertyAssertion");
  
  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.ObjectPropertyExpression property;
  
  public final hydra.ext.org.w3.owl.syntax.Individual source;
  
  public final hydra.ext.org.w3.owl.syntax.Individual target;
  
  public ObjectPropertyAssertion (java.util.List annotations, hydra.ext.org.w3.owl.syntax.ObjectPropertyExpression 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 ObjectPropertyAssertion)) {
      return false;
    }
    ObjectPropertyAssertion o = (ObjectPropertyAssertion) (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 ObjectPropertyAssertion withAnnotations(java.util.List annotations) {
    java.util.Objects.requireNonNull((annotations));
    return new ObjectPropertyAssertion(annotations, property, source, target);
  }
  
  public ObjectPropertyAssertion withProperty(hydra.ext.org.w3.owl.syntax.ObjectPropertyExpression property) {
    java.util.Objects.requireNonNull((property));
    return new ObjectPropertyAssertion(annotations, property, source, target);
  }
  
  public ObjectPropertyAssertion withSource(hydra.ext.org.w3.owl.syntax.Individual source) {
    java.util.Objects.requireNonNull((source));
    return new ObjectPropertyAssertion(annotations, property, source, target);
  }
  
  public ObjectPropertyAssertion withTarget(hydra.ext.org.w3.owl.syntax.Individual target) {
    java.util.Objects.requireNonNull((target));
    return new ObjectPropertyAssertion(annotations, property, source, target);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy