Lines Matching refs:field
56 private void writeField(Field field, Object configView, String prefix) throws Exception in writeField() argument
58 String propertyName = field.getName().substring(prefix.length()); in writeField()
60 Class fieldType = field.getType(); in writeField()
64 ConfigNode child = (ConfigNode) field.get(this); in writeField()
69 Configuration.set(convertValue(field), propertyName, configView); in writeField()
73 Configuration.set(field.get(this), propertyName, configView); in writeField()
85 public Object convertValue(Field field) throws IllegalAccessException in convertValue() argument
87 if (field.getType().equals(Boolean.TYPE)) in convertValue()
89 return (field.getBoolean(this) ? Boolean.TRUE : Boolean.FALSE); in convertValue()
91 if (field.getType().equals(Integer.TYPE)) in convertValue()
93 return new Integer(field.getInt(this)); in convertValue()
95 if (field.getType().equals(Short.TYPE)) in convertValue()
97 return new Short(field.getShort(this)); in convertValue()
99 if (field.getType().equals(Float.TYPE)) in convertValue()
101 return new Double(field.getFloat(this)); in convertValue()
103 if (field.getType().equals(Double.TYPE)) in convertValue()
105 return new Double(field.getDouble(this)); in convertValue()
131 private void readField(Field field, Object configView, String prefix) throws Exception in readField() argument
133 String propertyName = field.getName().substring(prefix.length()); in readField()
135 Class fieldType = field.getType(); in readField()
138 ConfigNode child = (ConfigNode) field.get(this); in readField()
146 field.setBoolean(this, Configuration.getBoolean(propertyName, configView)); in readField()
150 field.setInt(this, Configuration.getInt(propertyName, configView)); in readField()
154 field.setShort(this, Configuration.getShort(propertyName, configView)); in readField()
158 field.setFloat(this, Configuration.getFloat(propertyName, configView)); in readField()
162 field.setDouble(this, Configuration.getDouble(propertyName, configView)); in readField()
167 field.set(this, Configuration.getString(propertyName, configView)); in readField()