You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Tom (JIRA)" <xm...@xml.apache.org> on 2010/04/03 19:17:27 UTC
[jira] Created: (XMLBEANS-432) Add the value that will be set to
the PrePostSetFeature interface
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
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org