public interface ClientPropertyPersistentFilter extends Filter
ClientPropertyPersistentFilter filter = new ClientPropertyPersistentFilter(){ public boolean isTransient(Element element, Object clientPropertyKey) { if(clientPropertyKey.toString().startsWith("twaver.")){ return false; } return true; } }; box.output("/data.xml", false, filter);Please note that this filter only work for client properties. It do nothing for the standard java beans properties.
Modifier and Type | Method and Description |
---|---|
boolean |
isTransient(Element element,
java.lang.Object clientPropertyKey)
Ask whether a client property of an element is transient
(not serialized out).
|
boolean isTransient(Element element, java.lang.Object clientPropertyKey)
element
- Element the serializing elementclientPropertyKey
- Object the client property keyCopyright © 2002 - 2010 Serva Software. All Rights Reserved.