hydra.ext.org.w3.owl.syntax.ObjectPropertyDomain Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hydra-ext Show documentation
Show all versions of hydra-ext Show documentation
Hydra language extensions in Java; models, coders, and utilities
The newest version!
// Note: this is an automatically generated file. Do not edit.
package hydra.ext.org.w3.owl.syntax;
import java.io.Serializable;
/**
* See https://www.w3.org/TR/owl2-syntax/#Object_Property_Domain
*/
public class ObjectPropertyDomain implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/w3/owl/syntax.ObjectPropertyDomain");
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_DOMAIN = new hydra.core.Name("domain");
public final java.util.List annotations;
public final hydra.ext.org.w3.owl.syntax.ObjectPropertyExpression property;
public final hydra.ext.org.w3.owl.syntax.ClassExpression domain;
public ObjectPropertyDomain (java.util.List annotations, hydra.ext.org.w3.owl.syntax.ObjectPropertyExpression property, hydra.ext.org.w3.owl.syntax.ClassExpression domain) {
java.util.Objects.requireNonNull((annotations));
java.util.Objects.requireNonNull((property));
java.util.Objects.requireNonNull((domain));
this.annotations = annotations;
this.property = property;
this.domain = domain;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof ObjectPropertyDomain)) {
return false;
}
ObjectPropertyDomain o = (ObjectPropertyDomain) (other);
return annotations.equals(o.annotations) && property.equals(o.property) && domain.equals(o.domain);
}
@Override
public int hashCode() {
return 2 * annotations.hashCode() + 3 * property.hashCode() + 5 * domain.hashCode();
}
public ObjectPropertyDomain withAnnotations(java.util.List annotations) {
java.util.Objects.requireNonNull((annotations));
return new ObjectPropertyDomain(annotations, property, domain);
}
public ObjectPropertyDomain withProperty(hydra.ext.org.w3.owl.syntax.ObjectPropertyExpression property) {
java.util.Objects.requireNonNull((property));
return new ObjectPropertyDomain(annotations, property, domain);
}
public ObjectPropertyDomain withDomain(hydra.ext.org.w3.owl.syntax.ClassExpression domain) {
java.util.Objects.requireNonNull((domain));
return new ObjectPropertyDomain(annotations, property, domain);
}
}