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

com.github.lontime.extjobrunr.beans.problems.SevereJobRunrExceptionProblemBean Maven / Gradle / Ivy

package com.github.lontime.extjobrunr.beans.problems;

import java.util.Map;

import org.jobrunr.dashboard.ui.model.problems.SevereJobRunrExceptionProblem;
import org.joda.beans.Bean;
import org.joda.beans.BeanBuilder;
import org.joda.beans.JodaBeanUtils;
import org.joda.beans.MetaBean;
import org.joda.beans.MetaProperty;
import org.joda.beans.Property;
import org.joda.beans.gen.BeanDefinition;
import org.joda.beans.gen.PropertyDefinition;
import org.joda.beans.impl.direct.DirectBeanBuilder;
import org.joda.beans.impl.direct.DirectMetaBean;
import org.joda.beans.impl.direct.DirectMetaProperty;
import org.joda.beans.impl.direct.DirectMetaPropertyMap;

@BeanDefinition
public class SevereJobRunrExceptionProblemBean implements Bean {

    @PropertyDefinition
    public String type;


    @PropertyDefinition
    private String githubIssueTitle;

    @PropertyDefinition
    private String githubIssueBody;

    @PropertyDefinition
    private Integer githubIssueBodyLength;

    public SevereJobRunrExceptionProblemBean() {
    }

    public SevereJobRunrExceptionProblemBean(SevereJobRunrExceptionProblem problem) {
        this.type = SevereJobRunrExceptionProblem.PROBLEM_TYPE;
        this.githubIssueTitle = problem.getGithubIssueTitle();
        this.githubIssueBody = problem.getGithubIssueBody();
        this.githubIssueBodyLength = problem.getGithubIssueBodyLength();
    }
    //------------------------- AUTOGENERATED START -------------------------
    /**
     * The meta-bean for {@code SevereJobRunrExceptionProblemBean}.
     * @return the meta-bean, not null
     */
    public static SevereJobRunrExceptionProblemBean.Meta meta() {
        return SevereJobRunrExceptionProblemBean.Meta.INSTANCE;
    }

    static {
        MetaBean.register(SevereJobRunrExceptionProblemBean.Meta.INSTANCE);
    }

    @Override
    public SevereJobRunrExceptionProblemBean.Meta metaBean() {
        return SevereJobRunrExceptionProblemBean.Meta.INSTANCE;
    }

    //-----------------------------------------------------------------------
    /**
     * Gets the type.
     * @return the value of the property
     */
    public String getType() {
        return type;
    }

    /**
     * Sets the type.
     * @param type  the new value of the property
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * Gets the the {@code type} property.
     * @return the property, not null
     */
    public final Property type() {
        return metaBean().type().createProperty(this);
    }

    //-----------------------------------------------------------------------
    /**
     * Gets the githubIssueTitle.
     * @return the value of the property
     */
    public String getGithubIssueTitle() {
        return githubIssueTitle;
    }

    /**
     * Sets the githubIssueTitle.
     * @param githubIssueTitle  the new value of the property
     */
    public void setGithubIssueTitle(String githubIssueTitle) {
        this.githubIssueTitle = githubIssueTitle;
    }

    /**
     * Gets the the {@code githubIssueTitle} property.
     * @return the property, not null
     */
    public final Property githubIssueTitle() {
        return metaBean().githubIssueTitle().createProperty(this);
    }

    //-----------------------------------------------------------------------
    /**
     * Gets the githubIssueBody.
     * @return the value of the property
     */
    public String getGithubIssueBody() {
        return githubIssueBody;
    }

    /**
     * Sets the githubIssueBody.
     * @param githubIssueBody  the new value of the property
     */
    public void setGithubIssueBody(String githubIssueBody) {
        this.githubIssueBody = githubIssueBody;
    }

    /**
     * Gets the the {@code githubIssueBody} property.
     * @return the property, not null
     */
    public final Property githubIssueBody() {
        return metaBean().githubIssueBody().createProperty(this);
    }

    //-----------------------------------------------------------------------
    /**
     * Gets the githubIssueBodyLength.
     * @return the value of the property
     */
    public Integer getGithubIssueBodyLength() {
        return githubIssueBodyLength;
    }

    /**
     * Sets the githubIssueBodyLength.
     * @param githubIssueBodyLength  the new value of the property
     */
    public void setGithubIssueBodyLength(Integer githubIssueBodyLength) {
        this.githubIssueBodyLength = githubIssueBodyLength;
    }

    /**
     * Gets the the {@code githubIssueBodyLength} property.
     * @return the property, not null
     */
    public final Property githubIssueBodyLength() {
        return metaBean().githubIssueBodyLength().createProperty(this);
    }

    //-----------------------------------------------------------------------
    @Override
    public SevereJobRunrExceptionProblemBean clone() {
        return JodaBeanUtils.cloneAlways(this);
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (obj != null && obj.getClass() == this.getClass()) {
            SevereJobRunrExceptionProblemBean other = (SevereJobRunrExceptionProblemBean) obj;
            return JodaBeanUtils.equal(getType(), other.getType()) &&
                    JodaBeanUtils.equal(getGithubIssueTitle(), other.getGithubIssueTitle()) &&
                    JodaBeanUtils.equal(getGithubIssueBody(), other.getGithubIssueBody()) &&
                    JodaBeanUtils.equal(getGithubIssueBodyLength(), other.getGithubIssueBodyLength());
        }
        return false;
    }

    @Override
    public int hashCode() {
        int hash = getClass().hashCode();
        hash = hash * 31 + JodaBeanUtils.hashCode(getType());
        hash = hash * 31 + JodaBeanUtils.hashCode(getGithubIssueTitle());
        hash = hash * 31 + JodaBeanUtils.hashCode(getGithubIssueBody());
        hash = hash * 31 + JodaBeanUtils.hashCode(getGithubIssueBodyLength());
        return hash;
    }

    @Override
    public String toString() {
        StringBuilder buf = new StringBuilder(160);
        buf.append("SevereJobRunrExceptionProblemBean{");
        int len = buf.length();
        toString(buf);
        if (buf.length() > len) {
            buf.setLength(buf.length() - 2);
        }
        buf.append('}');
        return buf.toString();
    }

    protected void toString(StringBuilder buf) {
        buf.append("type").append('=').append(JodaBeanUtils.toString(getType())).append(',').append(' ');
        buf.append("githubIssueTitle").append('=').append(JodaBeanUtils.toString(getGithubIssueTitle())).append(',').append(' ');
        buf.append("githubIssueBody").append('=').append(JodaBeanUtils.toString(getGithubIssueBody())).append(',').append(' ');
        buf.append("githubIssueBodyLength").append('=').append(JodaBeanUtils.toString(getGithubIssueBodyLength())).append(',').append(' ');
    }

    //-----------------------------------------------------------------------
    /**
     * The meta-bean for {@code SevereJobRunrExceptionProblemBean}.
     */
    public static class Meta extends DirectMetaBean {
        /**
         * The singleton instance of the meta-bean.
         */
        static final Meta INSTANCE = new Meta();

        /**
         * The meta-property for the {@code type} property.
         */
        private final MetaProperty type = DirectMetaProperty.ofReadWrite(
                this, "type", SevereJobRunrExceptionProblemBean.class, String.class);
        /**
         * The meta-property for the {@code githubIssueTitle} property.
         */
        private final MetaProperty githubIssueTitle = DirectMetaProperty.ofReadWrite(
                this, "githubIssueTitle", SevereJobRunrExceptionProblemBean.class, String.class);
        /**
         * The meta-property for the {@code githubIssueBody} property.
         */
        private final MetaProperty githubIssueBody = DirectMetaProperty.ofReadWrite(
                this, "githubIssueBody", SevereJobRunrExceptionProblemBean.class, String.class);
        /**
         * The meta-property for the {@code githubIssueBodyLength} property.
         */
        private final MetaProperty githubIssueBodyLength = DirectMetaProperty.ofReadWrite(
                this, "githubIssueBodyLength", SevereJobRunrExceptionProblemBean.class, Integer.class);
        /**
         * The meta-properties.
         */
        private final Map> metaPropertyMap$ = new DirectMetaPropertyMap(
                this, null,
                "type",
                "githubIssueTitle",
                "githubIssueBody",
                "githubIssueBodyLength");

        /**
         * Restricted constructor.
         */
        protected Meta() {
        }

        @Override
        protected MetaProperty metaPropertyGet(String propertyName) {
            switch (propertyName.hashCode()) {
                case 3575610:  // type
                    return type;
                case 710926658:  // githubIssueTitle
                    return githubIssueTitle;
                case 299496824:  // githubIssueBody
                    return githubIssueBody;
                case 892150398:  // githubIssueBodyLength
                    return githubIssueBodyLength;
            }
            return super.metaPropertyGet(propertyName);
        }

        @Override
        public BeanBuilder builder() {
            return new DirectBeanBuilder<>(new SevereJobRunrExceptionProblemBean());
        }

        @Override
        public Class beanType() {
            return SevereJobRunrExceptionProblemBean.class;
        }

        @Override
        public Map> metaPropertyMap() {
            return metaPropertyMap$;
        }

        //-----------------------------------------------------------------------
        /**
         * The meta-property for the {@code type} property.
         * @return the meta-property, not null
         */
        public final MetaProperty type() {
            return type;
        }

        /**
         * The meta-property for the {@code githubIssueTitle} property.
         * @return the meta-property, not null
         */
        public final MetaProperty githubIssueTitle() {
            return githubIssueTitle;
        }

        /**
         * The meta-property for the {@code githubIssueBody} property.
         * @return the meta-property, not null
         */
        public final MetaProperty githubIssueBody() {
            return githubIssueBody;
        }

        /**
         * The meta-property for the {@code githubIssueBodyLength} property.
         * @return the meta-property, not null
         */
        public final MetaProperty githubIssueBodyLength() {
            return githubIssueBodyLength;
        }

        //-----------------------------------------------------------------------
        @Override
        protected Object propertyGet(Bean bean, String propertyName, boolean quiet) {
            switch (propertyName.hashCode()) {
                case 3575610:  // type
                    return ((SevereJobRunrExceptionProblemBean) bean).getType();
                case 710926658:  // githubIssueTitle
                    return ((SevereJobRunrExceptionProblemBean) bean).getGithubIssueTitle();
                case 299496824:  // githubIssueBody
                    return ((SevereJobRunrExceptionProblemBean) bean).getGithubIssueBody();
                case 892150398:  // githubIssueBodyLength
                    return ((SevereJobRunrExceptionProblemBean) bean).getGithubIssueBodyLength();
            }
            return super.propertyGet(bean, propertyName, quiet);
        }

        @Override
        protected void propertySet(Bean bean, String propertyName, Object newValue, boolean quiet) {
            switch (propertyName.hashCode()) {
                case 3575610:  // type
                    ((SevereJobRunrExceptionProblemBean) bean).setType((String) newValue);
                    return;
                case 710926658:  // githubIssueTitle
                    ((SevereJobRunrExceptionProblemBean) bean).setGithubIssueTitle((String) newValue);
                    return;
                case 299496824:  // githubIssueBody
                    ((SevereJobRunrExceptionProblemBean) bean).setGithubIssueBody((String) newValue);
                    return;
                case 892150398:  // githubIssueBodyLength
                    ((SevereJobRunrExceptionProblemBean) bean).setGithubIssueBodyLength((Integer) newValue);
                    return;
            }
            super.propertySet(bean, propertyName, newValue, quiet);
        }

    }

    //-------------------------- AUTOGENERATED END --------------------------
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy