org.jvnet.jaxb2_commons.mock_annotations.XmlElementsBean 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
package org.jvnet.jaxb2_commons.mock_annotations;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
public class XmlElementsBean
implements XmlElements
{
private XmlElement[] value;
public XmlElementsBean(XmlElement[] value) {
this.value = value;
}
public XmlElementsBean() {
}
public Class annotationType() {
return XmlElements.class;
}
public boolean equals(Object that) {
if (!(that instanceof XmlElements)) {
return false;
}
if (!value.equals(((XmlElementsBean) that).value)) {
return false;
}
return true;
}
public int hashCode() {
int r = 0;
r = (r^ 0);
return r;
}
public void value(XmlElement[] value) {
value = value;
}
public XmlElement[] value() {
return value;
}
}