
org.jvnet.jaxb2_commons.mock_annotations.XmlNsBean Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaxb-api-annotation-mocks Show documentation
Show all versions of jaxb-api-annotation-mocks Show documentation
Mock annotation beans for JAXB API
The newest version!
package org.jvnet.jaxb2_commons.mock_annotations;
import javax.xml.bind.annotation.XmlNs;
public class XmlNsBean
implements XmlNs
{
private String prefix;
private String namespaceURI;
public XmlNsBean(String prefix, String namespaceURI) {
this.prefix = prefix;
this.namespaceURI = namespaceURI;
}
public XmlNsBean() {
}
public Class annotationType() {
return XmlNs.class;
}
public boolean equals(Object that) {
if (!(that instanceof XmlNs)) {
return false;
}
if (!prefix.equals(((XmlNsBean) that).prefix)) {
return false;
}
if (!namespaceURI.equals(((XmlNsBean) that).namespaceURI)) {
return false;
}
return true;
}
public int hashCode() {
int r = 0;
r = (r^prefix.hashCode());
r = (r^namespaceURI.hashCode());
return r;
}
public void prefix(String value) {
this.prefix = value;
}
public String prefix() {
return prefix;
}
public void namespaceURI(String value) {
this.namespaceURI = value;
}
public String namespaceURI() {
return namespaceURI;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy