/** * Sets the FieldDescriptor that this FieldHander is responsibile for. By setting the * FieldDescriptor, it allows the implementation of the FieldHandler methods to obtain information * about the field itself. This allows a particular implementation to become more generic and * reusable. * * @param fieldDesc the FieldDescriptor to set */ public void setFieldDescriptor(FieldDescriptor fieldDesc) { super.setFieldDescriptor(fieldDesc); if (_handler != null) { if (_handler instanceof GeneralizedFieldHandler) { ((GeneralizedFieldHandler) _handler).setFieldDescriptor(fieldDesc); } } }
/** * Sets the FieldDescriptor that this FieldHander is * responsibile for. By setting the FieldDescriptor, it * allows the implementation of the FieldHandler methods * to obtain information about the field itself. This allows * a particular implementation to become more generic and * reusable. * * @param fieldDesc the FieldDescriptor to set */ public void setFieldDescriptor(FieldDescriptor fieldDesc) { super.setFieldDescriptor(fieldDesc); if (_handler != null) { if (_handler instanceof GeneralizedFieldHandler) { ((GeneralizedFieldHandler) _handler).setFieldDescriptor(fieldDesc); } } }
handler.setFieldDescriptor(xmlDesc);