hydra.ext.org.w3.owl.syntax.AnnotationAssertion 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;
public class AnnotationAssertion implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/w3/owl/syntax.AnnotationAssertion");
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_SUBJECT = new hydra.core.Name("subject");
public static final hydra.core.Name FIELD_NAME_VALUE = new hydra.core.Name("value");
public final java.util.List annotations;
public final hydra.ext.org.w3.owl.syntax.AnnotationProperty property;
public final hydra.ext.org.w3.owl.syntax.AnnotationSubject subject;
public final hydra.ext.org.w3.owl.syntax.AnnotationValue value;
public AnnotationAssertion (java.util.List annotations, hydra.ext.org.w3.owl.syntax.AnnotationProperty property, hydra.ext.org.w3.owl.syntax.AnnotationSubject subject, hydra.ext.org.w3.owl.syntax.AnnotationValue value) {
java.util.Objects.requireNonNull((annotations));
java.util.Objects.requireNonNull((property));
java.util.Objects.requireNonNull((subject));
java.util.Objects.requireNonNull((value));
this.annotations = annotations;
this.property = property;
this.subject = subject;
this.value = value;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof AnnotationAssertion)) {
return false;
}
AnnotationAssertion o = (AnnotationAssertion) (other);
return annotations.equals(o.annotations) && property.equals(o.property) && subject.equals(o.subject) && value.equals(o.value);
}
@Override
public int hashCode() {
return 2 * annotations.hashCode() + 3 * property.hashCode() + 5 * subject.hashCode() + 7 * value.hashCode();
}
public AnnotationAssertion withAnnotations(java.util.List annotations) {
java.util.Objects.requireNonNull((annotations));
return new AnnotationAssertion(annotations, property, subject, value);
}
public AnnotationAssertion withProperty(hydra.ext.org.w3.owl.syntax.AnnotationProperty property) {
java.util.Objects.requireNonNull((property));
return new AnnotationAssertion(annotations, property, subject, value);
}
public AnnotationAssertion withSubject(hydra.ext.org.w3.owl.syntax.AnnotationSubject subject) {
java.util.Objects.requireNonNull((subject));
return new AnnotationAssertion(annotations, property, subject, value);
}
public AnnotationAssertion withValue(hydra.ext.org.w3.owl.syntax.AnnotationValue value) {
java.util.Objects.requireNonNull((value));
return new AnnotationAssertion(annotations, property, subject, value);
}
}