[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Created: (XMLBEANS-432) Add the value that will be set to
From:       "Tom (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2010-04-03 17:17:27
Message-ID: 303397192.675301270315047774.JavaMail.jira () brutus ! apache ! org
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic