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

hydra.ext.org.w3.owl.syntax.DataPropertyAxiom 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 abstract class DataPropertyAxiom implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/w3/owl/syntax.DataPropertyAxiom");
  
  public static final hydra.core.Name FIELD_NAME_DATA_PROPERTY_AXIOM = new hydra.core.Name("dataPropertyAxiom");
  
  public static final hydra.core.Name FIELD_NAME_DATA_PROPERTY_RANGE = new hydra.core.Name("dataPropertyRange");
  
  public static final hydra.core.Name FIELD_NAME_DISJOINT_DATA_PROPERTIES = new hydra.core.Name("disjointDataProperties");
  
  public static final hydra.core.Name FIELD_NAME_EQUIVALENT_DATA_PROPERTIES = new hydra.core.Name("equivalentDataProperties");
  
  public static final hydra.core.Name FIELD_NAME_FUNCTIONAL_DATA_PROPERTY = new hydra.core.Name("functionalDataProperty");
  
  public static final hydra.core.Name FIELD_NAME_SUB_DATA_PROPERTY_OF = new hydra.core.Name("subDataPropertyOf");
  
  private DataPropertyAxiom () {
  
  }
  
  public abstract  R accept(Visitor visitor) ;
  
  public interface Visitor {
    R visit(DataPropertyAxiom_ instance) ;
    
    R visit(DataPropertyRange instance) ;
    
    R visit(DisjointDataProperties instance) ;
    
    R visit(EquivalentDataProperties instance) ;
    
    R visit(FunctionalDataProperty instance) ;
    
    R visit(SubDataPropertyOf instance) ;
  }
  
  public interface PartialVisitor extends Visitor {
    default R otherwise(DataPropertyAxiom instance) {
      throw new IllegalStateException("Non-exhaustive patterns when matching: " + (instance));
    }
    
    default R visit(DataPropertyAxiom_ instance) {
      return otherwise((instance));
    }
    
    default R visit(DataPropertyRange instance) {
      return otherwise((instance));
    }
    
    default R visit(DisjointDataProperties instance) {
      return otherwise((instance));
    }
    
    default R visit(EquivalentDataProperties instance) {
      return otherwise((instance));
    }
    
    default R visit(FunctionalDataProperty instance) {
      return otherwise((instance));
    }
    
    default R visit(SubDataPropertyOf instance) {
      return otherwise((instance));
    }
  }
  
  public static final class DataPropertyAxiom_ extends hydra.ext.org.w3.owl.syntax.DataPropertyAxiom implements Serializable {
    public final hydra.ext.org.w3.owl.syntax.DataPropertyAxiom value;
    
    public DataPropertyAxiom_ (hydra.ext.org.w3.owl.syntax.DataPropertyAxiom value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof DataPropertyAxiom_)) {
        return false;
      }
      DataPropertyAxiom_ o = (DataPropertyAxiom_) (other);
      return value.equals(o.value);
    }
    
    @Override
    public int hashCode() {
      return 2 * value.hashCode();
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class DataPropertyRange extends hydra.ext.org.w3.owl.syntax.DataPropertyAxiom implements Serializable {
    public final hydra.ext.org.w3.owl.syntax.DataPropertyRange value;
    
    public DataPropertyRange (hydra.ext.org.w3.owl.syntax.DataPropertyRange value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof DataPropertyRange)) {
        return false;
      }
      DataPropertyRange o = (DataPropertyRange) (other);
      return value.equals(o.value);
    }
    
    @Override
    public int hashCode() {
      return 2 * value.hashCode();
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class DisjointDataProperties extends hydra.ext.org.w3.owl.syntax.DataPropertyAxiom implements Serializable {
    public final hydra.ext.org.w3.owl.syntax.DisjointDataProperties value;
    
    public DisjointDataProperties (hydra.ext.org.w3.owl.syntax.DisjointDataProperties value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof DisjointDataProperties)) {
        return false;
      }
      DisjointDataProperties o = (DisjointDataProperties) (other);
      return value.equals(o.value);
    }
    
    @Override
    public int hashCode() {
      return 2 * value.hashCode();
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class EquivalentDataProperties extends hydra.ext.org.w3.owl.syntax.DataPropertyAxiom implements Serializable {
    public final hydra.ext.org.w3.owl.syntax.EquivalentDataProperties value;
    
    public EquivalentDataProperties (hydra.ext.org.w3.owl.syntax.EquivalentDataProperties value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof EquivalentDataProperties)) {
        return false;
      }
      EquivalentDataProperties o = (EquivalentDataProperties) (other);
      return value.equals(o.value);
    }
    
    @Override
    public int hashCode() {
      return 2 * value.hashCode();
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class FunctionalDataProperty extends hydra.ext.org.w3.owl.syntax.DataPropertyAxiom implements Serializable {
    public final hydra.ext.org.w3.owl.syntax.FunctionalDataProperty value;
    
    public FunctionalDataProperty (hydra.ext.org.w3.owl.syntax.FunctionalDataProperty value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof FunctionalDataProperty)) {
        return false;
      }
      FunctionalDataProperty o = (FunctionalDataProperty) (other);
      return value.equals(o.value);
    }
    
    @Override
    public int hashCode() {
      return 2 * value.hashCode();
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class SubDataPropertyOf extends hydra.ext.org.w3.owl.syntax.DataPropertyAxiom implements Serializable {
    public final hydra.ext.org.w3.owl.syntax.SubDataPropertyOf value;
    
    public SubDataPropertyOf (hydra.ext.org.w3.owl.syntax.SubDataPropertyOf value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof SubDataPropertyOf)) {
        return false;
      }
      SubDataPropertyOf o = (SubDataPropertyOf) (other);
      return value.equals(o.value);
    }
    
    @Override
    public int hashCode() {
      return 2 * value.hashCode();
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy