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

hydra.ext.org.w3.owl.syntax.SubDataPropertyOf 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 SubDataPropertyOf implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/w3/owl/syntax.SubDataPropertyOf");
  
  public static final hydra.core.Name FIELD_NAME_ANNOTATIONS = new hydra.core.Name("annotations");
  
  public static final hydra.core.Name FIELD_NAME_SUB_PROPERTY = new hydra.core.Name("subProperty");
  
  public static final hydra.core.Name FIELD_NAME_SUPER_PROPERTY = new hydra.core.Name("superProperty");
  
  public final java.util.List annotations;
  
  public final hydra.ext.org.w3.owl.syntax.DataPropertyExpression subProperty;
  
  public final hydra.ext.org.w3.owl.syntax.DataPropertyExpression superProperty;
  
  public SubDataPropertyOf (java.util.List annotations, hydra.ext.org.w3.owl.syntax.DataPropertyExpression subProperty, hydra.ext.org.w3.owl.syntax.DataPropertyExpression superProperty) {
    java.util.Objects.requireNonNull((annotations));
    java.util.Objects.requireNonNull((subProperty));
    java.util.Objects.requireNonNull((superProperty));
    this.annotations = annotations;
    this.subProperty = subProperty;
    this.superProperty = superProperty;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof SubDataPropertyOf)) {
      return false;
    }
    SubDataPropertyOf o = (SubDataPropertyOf) (other);
    return annotations.equals(o.annotations) && subProperty.equals(o.subProperty) && superProperty.equals(o.superProperty);
  }
  
  @Override
  public int hashCode() {
    return 2 * annotations.hashCode() + 3 * subProperty.hashCode() + 5 * superProperty.hashCode();
  }
  
  public SubDataPropertyOf withAnnotations(java.util.List annotations) {
    java.util.Objects.requireNonNull((annotations));
    return new SubDataPropertyOf(annotations, subProperty, superProperty);
  }
  
  public SubDataPropertyOf withSubProperty(hydra.ext.org.w3.owl.syntax.DataPropertyExpression subProperty) {
    java.util.Objects.requireNonNull((subProperty));
    return new SubDataPropertyOf(annotations, subProperty, superProperty);
  }
  
  public SubDataPropertyOf withSuperProperty(hydra.ext.org.w3.owl.syntax.DataPropertyExpression superProperty) {
    java.util.Objects.requireNonNull((superProperty));
    return new SubDataPropertyOf(annotations, subProperty, superProperty);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy