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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy