/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.ufcspa.simdecs.diagram.mb.beans; import java.io.Serializable; import java.lang.reflect.Field; /** * * @author maroni */ public class PropertyEditorBean implements Serializable { private Field reflectionField; private String name; private Object value; private Integer minLength; private Integer maxLength; private boolean required; public PropertyEditorBean() { } public PropertyEditorBean(String name, Object value) { this.name = name; this.value = value; } @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final PropertyEditorBean other = (PropertyEditorBean) obj; if ((this.name == null) ? (other.name != null) : !this.name.equals(other.name)) { return false; } if ((this.value == null) ? (other.value != null) : !this.value.equals(other.value)) { return false; } return true; } @Override public int hashCode() { int hash = 7; hash = 89 * hash + (this.name != null ? this.name.hashCode() : 0); hash = 89 * hash + (this.value != null ? this.value.hashCode() : 0); return hash; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Object getValue() { return value; } public void setValue(Object value) { this.value = value; } public Integer getMaxLength() { return maxLength; } public void setMaxLength(Integer maxLength) { this.maxLength = maxLength; } public Integer getMinLength() { return minLength; } public void setMinLength(Integer minLength) { this.minLength = minLength; } public boolean isRequired() { return required; } public void setRequired(boolean required) { this.required = required; } public Field getReflectionField() { return reflectionField; } public void setReflectionField(Field reflectionField) { this.reflectionField = reflectionField; } }