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

List:       xmlbeans-dev
Subject:    [jira] Updated: (XMLBEANS-432) Add the value that will be set to
From:       "Raino Kolk (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2010-12-14 12:08:06
Message-ID: 22728361.112231292328486042.JavaMail.jira () thor
[Download RAW message or body]


     [ 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: 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