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

net.sf.andromedaioc.model.beans.ConstructorArgumentModel Maven / Gradle / Ivy

The newest version!
package net.sf.andromedaioc.model.beans;

public class ConstructorArgumentModel extends AbstractParameterModel {

    private Integer index;

    private Class type;

    public static ConstructorArgumentModelBuilder getBuilder() {
        return new ConstructorArgumentModelBuilder();
    }

    private ConstructorArgumentModel() {
    }

    public Integer getIndex() {
        return index;
    }

    private void setIndex(Integer index) {
        this.index = index;
    }

    public Class getType() {
        return type;
    }

    private void setType(Class type) {
        this.type = type;
    }

    public static class ConstructorArgumentModelBuilder {

        private ConstructorArgumentModel instance;

        private ConstructorArgumentModelBuilder() {
            instance = new ConstructorArgumentModel();
        }

        public ConstructorArgumentModelBuilder withIndex(Integer index) {
            instance.setIndex(index);
            return this;
        }

        public ConstructorArgumentModelBuilder withType(Class type) {
            instance.setType(type);
            return this;
        }

        public ConstructorArgumentModelBuilder withValue(ValueModel value) {
            instance.setValue(value);
            return this;
        }

        public ConstructorArgumentModel build() {
            return instance;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy