1 16 package org.apache.commons.betwixt; 17 18 import org.apache.commons.betwixt.expression.Expression; 19 import org.apache.commons.betwixt.expression.Updater; 20 21 27 public abstract class Descriptor { 28 29 30 private Expression textExpression; 31 32 private Updater updater; 33 34 private String propertyName; 35 36 private Class propertyType; 37 38 private Class singularPropertyType; 39 40 private Options options = new Options(); 41 42 43 44 public Descriptor() { 45 } 46 47 52 public Expression getTextExpression() { 53 return textExpression; 54 } 55 56 61 public void setTextExpression(Expression textExpression) { 62 this.textExpression = textExpression; 63 } 64 65 70 public Updater getUpdater() { 71 return updater; 72 } 73 74 79 public void setUpdater(Updater updater) { 80 this.updater = updater; 81 } 82 83 87 public Class getPropertyType() { 88 return propertyType; 89 } 90 91 95 public void setPropertyType(Class propertyType) { 96 this.propertyType = propertyType; 97 } 98 99 100 105 public String getPropertyName() { 106 return propertyName; 107 } 108 109 114 public void setPropertyName(String propertyName) { 115 this.propertyName = propertyName; 116 } 117 118 124 public Class getSingularPropertyType() { 125 if ( singularPropertyType == null ) { 126 return getPropertyType(); 127 } 128 return singularPropertyType; 129 } 130 131 137 public void setSingularPropertyType(Class singularPropertyType) { 138 this.singularPropertyType = singularPropertyType; 139 } 140 141 142 148 public Options getOptions() { 149 return options; 150 } 151 152 158 public void setOptions(Options options) { 159 this.options = options; 160 } 161 162 } 163 | Popular Tags |