Hi,

have a look at

http://castor.org/xml-fieldhandlers.html#Writing-a-GeneralizedFieldHandler

in detail, where you are instructed to write your own FieldHandler instance building on top of the GeneralizedFieldHandler class.

With this approach, you'll be having access to the following method

protected final FieldDescriptor getFieldDescriptor();

that you canb use to get hold of the corresponding (XML)FieldDescriptor.

Regards
Werner

[EMAIL PROTECTED] wrote:
Hello,

I need to access Information about the name of the xml entity or
attribute name in my FieldHandler. In concrete I need to throw a
special RuntimeException if a value for that entity/attribute is
supplied that is not valid based on a database query. As a input
value for my db query I need the name of the xml entity/attribute
name. I found that XMLClassDescriptor.getXMLName() has the
information I need, but unfortunately  this information isn't
available in my handler.

Do you have any ideas how to solve my problem? Should I write an
enhancement proposal for castor?

Kind regards


---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to