hydra.ext.io.shex.syntax.PrefixDecl 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.io.shex.syntax;
import java.io.Serializable;
public class PrefixDecl implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/io/shex/syntax.PrefixDecl");
public static final hydra.core.Name FIELD_NAME_PNAME_NS = new hydra.core.Name("pnameNs");
public static final hydra.core.Name FIELD_NAME_IRI_REF = new hydra.core.Name("iriRef");
public final hydra.ext.io.shex.syntax.PnameNs pnameNs;
public final hydra.ext.io.shex.syntax.IriRef iriRef;
public PrefixDecl (hydra.ext.io.shex.syntax.PnameNs pnameNs, hydra.ext.io.shex.syntax.IriRef iriRef) {
java.util.Objects.requireNonNull((pnameNs));
java.util.Objects.requireNonNull((iriRef));
this.pnameNs = pnameNs;
this.iriRef = iriRef;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof PrefixDecl)) {
return false;
}
PrefixDecl o = (PrefixDecl) (other);
return pnameNs.equals(o.pnameNs) && iriRef.equals(o.iriRef);
}
@Override
public int hashCode() {
return 2 * pnameNs.hashCode() + 3 * iriRef.hashCode();
}
public PrefixDecl withPnameNs(hydra.ext.io.shex.syntax.PnameNs pnameNs) {
java.util.Objects.requireNonNull((pnameNs));
return new PrefixDecl(pnameNs, iriRef);
}
public PrefixDecl withIriRef(hydra.ext.io.shex.syntax.IriRef iriRef) {
java.util.Objects.requireNonNull((iriRef));
return new PrefixDecl(pnameNs, iriRef);
}
}