2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
5 package org.ufcspa.simdecs.diagram.mb.beans;
7 import java.io.Serializable;
8 import java.lang.reflect.Field;
14 public class PropertyEditorBean implements Serializable {
16 private Field reflectionField;
19 private Integer minLength;
20 private Integer maxLength;
21 private boolean required;
23 public PropertyEditorBean() {
27 public PropertyEditorBean(String name, Object value) {
33 public boolean equals(Object obj) {
37 if (getClass() != obj.getClass()) {
40 final PropertyEditorBean other = (PropertyEditorBean) obj;
41 if ((this.name == null) ? (other.name != null) : !this.name.equals(other.name)) {
44 if ((this.value == null) ? (other.value != null) : !this.value.equals(other.value)) {
51 public int hashCode() {
53 hash = 89 * hash + (this.name != null ? this.name.hashCode() : 0);
54 hash = 89 * hash + (this.value != null ? this.value.hashCode() : 0);
58 public String getName() {
62 public void setName(String name) {
66 public Object getValue() {
70 public void setValue(Object value) {
74 public Integer getMaxLength() {
78 public void setMaxLength(Integer maxLength) {
79 this.maxLength = maxLength;
82 public Integer getMinLength() {
86 public void setMinLength(Integer minLength) {
87 this.minLength = minLength;
90 public boolean isRequired() {
94 public void setRequired(boolean required) {
95 this.required = required;
98 public Field getReflectionField() {
99 return reflectionField;
102 public void setReflectionField(Field reflectionField) {
103 this.reflectionField = reflectionField;