[
https://issues.apache.org/jira/browse/XMLBEANS-432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Raino Kolk updated XMLBEANS-432:
--------------------------------
Attachment: xmlbeans.patch
patch for pre and post handler
> Add the value that will be set to the PrePostSetFeature interface
> -----------------------------------------------------------------
>
> Key: XMLBEANS-432
> URL: https://issues.apache.org/jira/browse/XMLBEANS-432
> Project: XMLBeans
> Issue Type: Improvement
> Components: Compiler
> Environment: All platforms
> Reporter: Tom
> Attachments: xmlbeans.patch
>
>
> The PrePostSetFeature is very useful but the current handler interface lacks
> the value that will be set (especially in the preSet method):
> public static boolean preSet(int opType, XmlObject xo, QName prop,
> boolean isAttr, int index)
> {
> ...
> return true;
> }
> If the value that will be set was passed to the handler it would be possible
> to write handlers that can filter or manipulate the data before it is set.
> This would also allow writing a simple handler that does not set null values,
> what many people would appreciate (according to postings in the forum).
> Therefore I suggest to enhance the interface as follows:
> public static boolean preSet(int opType, XmlObject xo, QName prop,
> boolean isAttr, int index, Object value)
> {
> ...
> return true;
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]