All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jvnet.jaxb2_commons.mock_annotations.XmlEnumValueBean Maven / Gradle / Ivy

There is a newer version: 2.1-2
Show newest version

package org.jvnet.jaxb2_commons.mock_annotations;

import javax.xml.bind.annotation.XmlEnumValue;

public class XmlEnumValueBean
    implements XmlEnumValue
{

    private String value;

    public XmlEnumValueBean(String value) {
        this.value = value;
    }

    public XmlEnumValueBean() {
    }

    public Class annotationType() {
        return XmlEnumValue.class;
    }

    public boolean equals(Object that) {
        if (!(that instanceof XmlEnumValue)) {
            return false;
        }
        if (!value.equals(((XmlEnumValueBean) that).value)) {
            return false;
        }
        return true;
    }

    public int hashCode() {
        int r = 0;
        r = (r^value.hashCode());
        return r;
    }

    public void value(String value) {
        value = value;
    }

    public String value() {
        return value;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy